diff --git a/recipes/recipe_modules/bot_update/api.py b/recipes/recipe_modules/bot_update/api.py index f3096b8c9..86c95cdad 100644 --- a/recipes/recipe_modules/bot_update/api.py +++ b/recipes/recipe_modules/bot_update/api.py @@ -444,7 +444,7 @@ class BotUpdateApi(recipe_api.RecipeApi): return 'HEAD' target_ref = self.m.tryserver.gerrit_change_target_ref - if target_ref == 'refs/heads/master': + if target_ref in ['refs/heads/master', 'refs/heads/master']: return 'HEAD' return target_ref