Thread (1 message) 1 message, 1 author, 2016-06-15

Re: git smart-http do not authent to allow git ls-remote to be called anonymously

From: Jeff King <hidden>
Date: 2016-06-15 22:55:01

[re-adding git@vger; please keep discussion on-list]

On Sun, Oct 14, 2012 at 01:29:13PM +0800, 乙酸鋰 wrote:
Sorry, it does not serve the request. It returns http 401.
But if I add the username and password as a part of the URL, it succeeds.
In that case, then you probably need to upgrade your client version of
git, as I mentioned here:
quoted
quoted
Or is it that the server tells git that it needs authorization, but git
does not prompt, and instead just fails with "Authentication failed". In
that case, the issue is that you need a newer git client. Traditionally
the client expected to handle authentication during the initial
"info/refs" request. I added support for handling authentication during
later requests in commit b81401c, which is in git v1.7.11.7 and
v1.7.12.1.
-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help