Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1029)

Unified Diff: recipe_modules/bot_update/api.py

Issue 1762513002: Use gclient's git_cache setting in bot_update/api.py (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: test tweaks Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
« no previous file with comments | « no previous file | recipe_modules/bot_update/example.py » ('j') | recipe_modules/gclient/example.expected/basic.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698