From 1e250cdeb344f096cbff4d515e333077b3b108a8 Mon Sep 17 00:00:00 2001 From: Andrii Shyshkalov Date: Wed, 10 May 2017 15:39:31 +0200 Subject: [PATCH] git cl creds-check: understand '~' in path to .gitcookies. Before, git cl creds-check expected `http.cookiefile` of git config to have path without '~' which git understands on Linux/Mac. R=machenbach@chromium.org Bug: 719728 Change-Id: Ica1308b776b62bda7a8b85113c0c0df837c7d933 Reviewed-on: https://chromium-review.googlesource.com/501828 Reviewed-by: Michael Achenbach Commit-Queue: Andrii Shyshkalov --- git_cl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/git_cl.py b/git_cl.py index 9dff8952b..e794150f4 100755 --- a/git_cl.py +++ b/git_cl.py @@ -3648,6 +3648,7 @@ class _GitCookiesChecker(object): default = gerrit_util.CookiesAuthenticator.get_gitcookies_path() configured_path = RunGitSilent( ['config', '--global', 'http.cookiefile']).strip() + configured_path = os.path.expanduser(configured_path) if configured_path: self._ensure_default_gitcookies_path(configured_path, default) else: