From 361ccce1243f9071c702190492d8b51ff1f2492d Mon Sep 17 00:00:00 2001 From: Josip Sokcevic Date: Fri, 22 Jan 2021 00:56:43 +0000 Subject: [PATCH] Revert "Support main branch in bot_update" This reverts commit e7a31f42cda3d70b2da66b44634fc0a157dbe347. Reason for revert: has typo and doesn't work if typo is fixed Original change's description: > Support main branch in bot_update > > Change-Id: I58e88e9505779c309ac0af9d5b78b45feaa75543 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2528669 > Reviewed-by: Edward Lesmes > Commit-Queue: Josip Sokcevic TBR=ehmaldonado@chromium.org,infra-scoped@luci-project-accounts.iam.gserviceaccount.com,sokcevic@google.com # Not skipping CQ checks because original CL landed > 1 day ago. Change-Id: Ib6b266250b854e2554249b956766214be84ec522 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2643961 Reviewed-by: Josip Sokcevic Commit-Queue: Josip Sokcevic --- recipes/recipe_modules/bot_update/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/recipe_modules/bot_update/api.py b/recipes/recipe_modules/bot_update/api.py index bef7e1ea4..e634b8e51 100644 --- a/recipes/recipe_modules/bot_update/api.py +++ b/recipes/recipe_modules/bot_update/api.py @@ -450,7 +450,7 @@ class BotUpdateApi(recipe_api.RecipeApi): return 'HEAD' target_ref = self.m.tryserver.gerrit_change_target_ref - if target_ref in ['refs/heads/master', 'refs/heads/master']: + if target_ref == 'refs/heads/master': return 'HEAD' return target_ref