Merge "Check for a cookie file when fetching clone.bundle."
diff --git a/project.py b/project.py
index 46b7611..ba7898e 100644
--- a/project.py
+++ b/project.py
@@ -1746,6 +1746,9 @@
         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():