git-repo/subcmds
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
..
__init__.py Initial Contribution 2008-10-21 07:00:00 -07:00
abandon.py Fixed repo abandon to give better messages. 2011-04-07 16:49:23 -04:00
branches.py branches: Enable output of multiple projects 2010-05-04 07:51:28 -07:00
checkout.py Fixed repo checkout error message when git reports errors. 2011-04-07 16:55:35 -04:00
cherry_pick.py Remove unused imports 2012-08-23 12:15:26 +02:00
diff.py Option for 'repo diff' to generate output suitable for 'patch' cmd 2012-04-13 09:20:10 -07:00
download.py Remove unused imports 2012-08-23 12:15:26 +02:00
forall.py Add project annotation handling to repo 2012-04-23 12:35:08 -07:00
grep.py Remove unused imports 2012-08-23 12:15:26 +02:00
help.py help: Fix help sync 2011-10-11 15:23:41 -07:00
init.py Allow projects to be specified as notdefault 2012-09-05 11:46:48 -07:00
list.py Add 'list' command to repo. 2011-03-16 12:55:44 -07:00
manifest.py repo manifest: default to stdout if no "-o" 2012-09-04 09:30:18 -07:00
overview.py Add "repo overview" command. 2012-07-31 22:08:32 -07:00
prune.py Initial Contribution 2008-10-21 07:00:00 -07:00
rebase.py Remove unused imports 2012-08-23 12:15:26 +02:00
selfupdate.py sync: Run git gc --auto after fetch 2011-01-09 17:39:22 -08:00
smartsync.py Aliasing sync -s to 'smartsync' 2010-05-17 09:58:55 -07:00
stage.py Only display project path in 'repo stage -i' 2009-04-18 11:22:13 -07:00
start.py Fix for failures with repo upload for projects that have a SHA1 for a revision; instead use the default manifest revision 2012-06-14 16:54:32 -07:00
status.py Make "repo sync -j<count>" stop properly on Ctrl-C. 2012-09-05 11:38:41 -07:00
sync.py sync: Support authentication to manifest server with .netrc 2012-09-11 09:45:48 +02:00
upload.py upload: add --draft option. 2012-07-28 15:44:05 -07:00
version.py Describe the repo launch version in repo version 2011-11-29 15:02:15 -08:00