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
2009-06-02 00:09:07 +02:00
2009-06-02 00:09:07 +02:00
2012-08-23 12:15:26 +02:00
2008-10-21 07:00:00 -07:00
2012-04-13 09:46:00 -07:00
2012-08-23 12:15:26 +02:00
2012-08-23 12:15:26 +02:00
2011-09-19 14:52:57 -07:00
Description
No description provided
Apache-2.0 35 MiB
Languages
Python 99.1%
Shell 0.9%