author | Junio C Hamano <gitster@pobox.com> | |
Tue, 10 Mar 2009 06:34:25 +0000 (23:34 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 11 Mar 2009 05:35:31 +0000 (22:35 -0700) | ||
commit | c33976cbc6d1895fca5c1683fba678e786ee3e58 | |
tree | d2a3ad2dcdec4bc91b3488dcd26f7e3d47c30020 | tree | snapshot |
parent | 7059cd99fc671f9594b61cee7d10d69704f3ebe2 | commit | diff |
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>
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 | diff | blob | history |