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

Unified Diff: gclient.py

Issue 498043002: Fix git cache unlock invocation to specify cache dir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient.py
diff --git a/gclient.py b/gclient.py
index d547b95ddc8f1686d9e70c2e3dd26c2c856c5669..1aebc68fe0ec612b2e6840fa99f922ec66d0cdef 100755
--- a/gclient.py
+++ b/gclient.py
@@ -1223,7 +1223,8 @@ want to set 'managed': False in .gclient.
cache_dir = os.path.abspath(cache_dir)
# If running on a bot, force break any stale git cache locks.
if os.environ.get('CHROME_HEADLESS'):
- subprocess2.check_call(['git', 'cache', 'unlock', '--force', '--all'])
+ subprocess2.check_call(['git', 'cache', 'unlock', '--cache-dir',
+ cache_dir, '--force', '--all'])
gclient_scm.GitWrapper.cache_dir = cache_dir
git_cache.Mirror.SetCachePath(cache_dir)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698