commit | 361ccce1243f9071c702190492d8b51ff1f2492d | [log] [tgz] |
---|---|---|
author | Josip Sokcevic <sokcevic@google.com> | Fri Jan 22 00:56:43 2021 +0000 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 22 00:56:43 2021 +0000 |
tree | 029d3c12ebeef0458ab6f589801a72292f756188 | |
parent | 03fc9a3eb3f8ac993f244ed2dfff426e76501eb8 [diff] |
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 <ehmaldonado@chromium.org> > Commit-Queue: Josip Sokcevic <sokcevic@google.com> 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 <sokcevic@google.com> Commit-Queue: Josip Sokcevic <sokcevic@google.com>
diff --git a/recipes/recipe_modules/bot_update/api.py b/recipes/recipe_modules/bot_update/api.py index bef7e1e..e634b8e 100644 --- a/recipes/recipe_modules/bot_update/api.py +++ b/recipes/recipe_modules/bot_update/api.py
@@ -450,7 +450,7 @@ 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