Chromium Code Reviews

Unified Diff: git_cache.py

Issue 216013002: Suppress spurious warning about overriding cache dir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« 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: git_cache.py
diff --git a/git_cache.py b/git_cache.py
index 9ef4873874e34557211344623e4b41fadfe7d310..828bcf273ac128b741e927302ed817d9d8488a42 100755
--- a/git_cache.py
+++ b/git_cache.py
@@ -290,7 +290,8 @@ class OptionParser(optparse.OptionParser):
global_cache_dir = subprocess.check_output(
[GIT_EXECUTABLE, 'config', '--global', 'cache.cachepath']).strip()
if options.cache_dir:
- logging.warn('Overriding globally-configured cache directory.')
+ if global_cache_dir and options.cache_dir != global_cache_dir:
Ryan Tseng 2014/03/28 01:42:45 might need to coerce both sides to abspath to do a
szager1 2014/03/28 06:22:08 Done.
+ logging.warn('Overriding globally-configured cache directory.')
else:
options.cache_dir = global_cache_dir
except subprocess.CalledProcessError:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine