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..f62d8bf66229e4f9b5564c1664eb6c3eb8ca9f17 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/config.py. |
+ if self.m.gclient.c.cache_dir: |
+ flags.append(['--git-cache-dir', self.m.gclient.c.cache_dir]) |
martiniss
2016/03/03 21:10:23
instead of 'self.m.gclient.c.cache_dir', use 'cfg.
|
# Collect all fixed revisions to simulate them in the json output. |
# Fixed revision are the explicit input revisions of bot_update.py, i.e. |