remote-curl: fall back to basic auth if Negotiate fails
authorChristopher Schenk <christopher@cschenk.net>
Mon, 22 Mar 2021 11:51:16 +0000 (11:51 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Mar 2021 18:55:41 +0000 (11:55 -0700)
commit1b0d9545bb85912a16b367229d414f55d140d3be
tree57b13a12ef18e90ee0fcb6b1e0251f2128ed6767
parent98164e9585e02e31dcf1377a553efe076c15f8c6
remote-curl: fall back to basic auth if Negotiate fails

When the username and password are supplied in a url like this
https://myuser:secret@git.exampe/myrepo.git and the server supports the
negotiate authenticaten method, git does not fall back to basic auth and
libcurl hardly tries to authenticate with the negotiate method.

Stop using the Negotiate authentication method after the first failure
because if it fails on the first try it will never succeed.

Signed-off-by: Christopher Schenk <christopher@cschenk.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c