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: |