Suppress spurious warning about overriding cache dir.

R=iannucci@chromium.org,hinoka@chromium.org
BUG=

Review URL: https://codereview.chromium.org/216013002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@260078 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
szager@chromium.org 11 years ago
parent 7f627a9130
commit 38a0f57c23

@ -290,7 +290,10 @@ 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 (
os.path.abspath(options.cache_dir) !=
os.path.abspath(global_cache_dir)):
logging.warn('Overriding globally-configured cache directory.')
else:
options.cache_dir = global_cache_dir
except subprocess.CalledProcessError:

Loading…
Cancel
Save