Index: recipe_modules/bot_update/api.py |
diff --git a/recipe_modules/bot_update/api.py b/recipe_modules/bot_update/api.py |
index ccd725efce2ca9b07bad69dd155b8421779cab9b..fbf1ccedfdf31c990c4836ddc2352749200296f1 100644 |
--- a/recipe_modules/bot_update/api.py |
+++ b/recipe_modules/bot_update/api.py |
@@ -143,7 +143,6 @@ class BotUpdateApi(recipe_api.RecipeApi): |
['--spec', spec_string], |
['--root', root], |
['--revision_mapping_file', self.m.json.input(rev_map)], |
- ['--git-cache-dir', self.m.path['git_cache']], |
# 3. How to find the patch, if any (issue/patchset/patch_url). |
['--issue', issue], |
@@ -158,6 +157,10 @@ class BotUpdateApi(recipe_api.RecipeApi): |
# 4. Hookups to JSON output back into recipes. |
['--output_json', self.m.json.output()],] |
+ # Honor gclient module's setting for whether to use a git cache. |
+ # See chromium_no_git_cache config in gclient/api.py. |
agable
2016/03/03 17:42:31
gclient/config.py
szager1
2016/03/03 18:03:02
Done.
|
+ if self.m.gclient.c.cache_dir: |
+ flags.append(['--git-cache-dir', self.m.gclient.c.cache_dir]) |
# Collect all fixed revisions to simulate them in the json output. |
# Fixed revision are the explicit input revisions of bot_update.py, i.e. |