Go to file
David Pursehouse 86d973d24e 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
2012-09-11 09:45:48 +02:00
docs Allow projects to be specified as notdefault 2012-09-05 11:46:48 -07:00
hooks hooks/pre-auto-gc: look in sysfs to see if a battery is known. 2012-05-25 02:25:59 -07:00
subcmds sync: Support authentication to manifest server with .netrc 2012-09-11 09:45:48 +02:00
tests Fix error parsing a non-existant configuration file 2009-07-02 16:12:57 -07:00
.gitignore .gitignore: add an entry for repopickles 2009-06-28 15:08:56 -07:00
.project Add PyDev project files to repo 2009-06-02 00:09:07 +02:00
.pydevproject Add PyDev project files to repo 2009-06-02 00:09:07 +02:00
color.py Remove unused imports 2012-08-23 12:15:26 +02:00
command.py Allow projects to be specified as notdefault 2012-09-05 11:46:48 -07:00
COPYING Initial Contribution 2008-10-21 07:00:00 -07:00
editor.py Fix for handling values of EDITOR which contain a space. 2010-08-06 17:05:04 -07:00
error.py Add manifest groups 2012-04-13 09:46:00 -07:00
git_command.py Fix bug in version_tuple to handle strings with -rc# 2012-07-31 22:18:47 -07:00
git_config.py Permit - in URL schemes for special URLs 2012-03-14 15:28:22 -07:00
git_refs.py Remove unused imports 2012-08-23 12:15:26 +02:00
git_ssh Don't allow git fetch to start ControlMaster 2010-10-29 08:15:14 -07:00
main.py Remove unused imports 2012-08-23 12:15:26 +02:00
manifest_xml.py Fix ManifestParseError when first child node is comment 2012-09-07 08:38:08 -07:00
pager.py Don't start the pager if stdout is a pipe 2009-04-01 07:24:22 -07:00
progress.py Support units in progress messages 2011-09-19 14:52:57 -07:00
project.py Fix errors when clone.bundle missing on server 2012-09-06 10:54:46 -07:00
repo Use gerrit.googlesource.com/git-repo as the default URL 2012-06-05 07:57:24 -07:00
SUBMITTING_PATCHES Patches should be submitted to master, not maint 2012-08-21 14:06:10 +02:00
trace.py Fix repo --trace to show ref and config loads 2009-04-18 09:54:51 -07:00