Open GoogleCodeExporter opened 8 years ago
We are having the same issue...just to note that it does not prompt for
password... I wonder if the newer versions are not reading the 401 correctly.
Original comment by smbambl...@gmail.com
on 24 Feb 2012 at 3:14
yes, just to clarify because I realise that I didn't do that before, but also
with us it was not prompting for the password, just failing with that error and
not prompting for anything.
Original comment by chris.al...@gmail.com
on 24 Feb 2012 at 3:17
Chris...would you mind sharing your apache conf and are you using smart http?
http://pastebin.com/dz2NXJES this is what ours looks like.
Original comment by smbambl...@gmail.com
on 24 Feb 2012 at 3:39
Also we don't seem to be the only ones...
http://stackoverflow.com/questions/9364901/git-push-doesnt-ask-for-password-and-
gives-401-fine-when-password-typed-inline
Original comment by smbambl...@gmail.com
on 24 Feb 2012 at 3:40
this is our virtualhost configuration: http://pastebin.com/cseNxQJH
you have a lot more options than us, maybe because it's publically facing? ours
is only used internally for the programmings in the office.
Original comment by chris.al...@gmail.com
on 24 Feb 2012 at 3:44
we found the following "temporary" solution was to downgrade msysgit to 1.7.6
apparently it happened with all our windows machines using 1.7.9 and
downgrading to 1.7.6 solved it for the meantime.....
the solution on my macbook was also to downgrade to the previous version
Original comment by chris.al...@gmail.com
on 24 Feb 2012 at 3:50
this error is still present in the 1.7.10+ version of git and the solution was
downgrade to 1.7.7 on my mac and probably (I can't test this) 1.7.6 on windows,
however this time I had a chance to do more testing, so here is what I found
out.
the problem is not anything to do with curl, I suppose you have setup access to
your repository for anonymous read and authenticated write, then triggering the
Basic auth you've setup for write access like this:
curl --user u:p http://domain.com/repo.git/git-receive-pack
with the correct credentials, you'll login correctly, however without the
"--user u:p" part of that command it'll fail with the predictable apache 401
error page.
if you try to open this url in the browser:
http://u:p@domain.com/repo.git/git-receive-pack
then it'll work, if you remove the username and password part of the url, it'll
predictably fail again with the apache 401 error page, however this time your
browser interprets the html instead of dumping it to the command line
so the problem is not the auth and the problem is not curl, the problem is with
git-core and the version of it.
if you downgrade to 1.7.7.2 on my macbook and 1.7.6.x on windows then you will
eliminate this problem.
when you try to setup a git remote such as
http://username@domain.dom/repo.git
then try to push "git push origin master" or similar, you'll be prompted for
the password and everything will work fine
Original comment by chris.al...@gmail.com
on 4 Jun 2012 at 6:36
Original issue reported on code.google.com by
chris.al...@gmail.com
on 15 Feb 2012 at 1:43