summaryrefslogtreecommitdiffstats
path: root/error.py
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2012-08-24 10:21:02 +0900
committerGustaf Lundh <gustaf.lundh@sonymobile.com>2012-09-11 09:45:48 +0200
commit86d973d24ec6771504c37eddc535dff8e03c724f (patch)
tree1676f107c59efd1d92bd92cb48a9dc726bf00e59 /error.py
parent34acdd253439448b6c08c3abfc5e7b8bd03f383f (diff)
downloadgit-repo-86d973d24ec6771504c37eddc535dff8e03c724f.tar.gz
sync: Support authentication to manifest server with .netrc
When using the --smart-sync or --smart-tag option, and the specified manifest server is hosted on a server that requires authentication, repo sync fails with the error: HTTP 401 Unauthorized. Add support for getting the credentials from the .netrc file. If a .netrc file exists in the user's home directory, and it contains credentials for the hostname of the manifest server specified in the manifest, use the credentials to authenticate with the manifest server using the URL syntax extension for Basic Authentication: http://user:password@host:port/path Credentials from the .netrc file are only used if the manifest server URL specified in the manifest does not already include credentials. Change-Id: I06e6586e8849d0cd12fa9746789e8d45d5b1f848
Diffstat (limited to 'error.py')
0 files changed, 0 insertions, 0 deletions