Index: recipe_modules/bot_update/api.py |
diff --git a/recipe_modules/bot_update/api.py b/recipe_modules/bot_update/api.py |
index 2b64807e5ec34f90ddb7da97967f72ae81046834..31a27335c82c2d67528b6906cce51b748dfd6c98 100644 |
--- a/recipe_modules/bot_update/api.py |
+++ b/recipe_modules/bot_update/api.py |
@@ -60,7 +60,7 @@ class BotUpdateApi(recipe_api.RecipeApi): |
patch_project_roots=None, patch_oauth2=False, |
output_manifest=True, clobber=False, |
root_solution_revision=None, rietveld=None, issue=None, |
- patchset=None, **kwargs): |
+ patchset=None, gerrit_no_reset=False, **kwargs): |
""" |
Args: |
gclient_config: The gclient configuration to use when running bot_update. |
@@ -200,6 +200,8 @@ class BotUpdateApi(recipe_api.RecipeApi): |
cmd.append('--output_manifest') |
if with_branch_heads or cfg.with_branch_heads: |
cmd.append('--with_branch_heads') |
+ if gerrit_no_reset: |
+ cmd.append('--gerrit_no_reset') |
# Inject Json output for testing. |
git_mode = self._mastername not in SVN_MASTERS |