From ed68d0e8529f059a5d989ebd505bfb53e869ec2f Mon Sep 17 00:00:00 2001 From: "Torne (Richard Coles)" Date: Fri, 11 Jan 2013 16:22:54 +0000 Subject: [PATCH] Check for a cookie file when fetching clone.bundle. If the user's git config specifies a cookie file for HTTP, use it when fetching clone.bundle, as it may contain the required login credentials to get access (e.g. when used with Compute Engine service accounts). Change-Id: I12ee9e38694822ef1de4ed62138c3876c43f431b --- project.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/project.py b/project.py index 46b76118..ba7898ed 100644 --- a/project.py +++ b/project.py @@ -1746,6 +1746,9 @@ class Project(object): os.remove(tmpPath) if 'http_proxy' in os.environ and 'darwin' == sys.platform: cmd += ['--proxy', os.environ['http_proxy']] + cookiefile = GitConfig.ForUser().GetString('http.cookiefile') + if cookiefile: + cmd += ['--cookie', cookiefile] cmd += [srcUrl] if IsTrace():