]> git.ipfire.org Git - thirdparty/git.git/commit - http.c
http authentication via prompts
authorJunio C Hamano <gitster@pobox.com>
Tue, 10 Mar 2009 06:34:25 +0000 (23:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Mar 2009 05:35:31 +0000 (22:35 -0700)
commitc33976cbc6d1895fca5c1683fba678e786ee3e58
treed2a3ad2dcdec4bc91b3488dcd26f7e3d47c30020
parent7059cd99fc671f9594b61cee7d10d69704f3ebe2
http authentication via prompts

Curl is designed not to ask for password when only username is given in
the URL, but has a way for application to feed a (username, password) pair
to it.  With this patch, you do not have to keep your password in
plaintext in your $HOME/.netrc file when talking with a password protected
URL with http://<username>@<host>/path/to/repository.git/ syntax.

The code handles only the http-walker side, not the push side.  At least,
not yet.  But interested parties can add support for it.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c