git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git over http not re-authenticating after 301 redirect?
@ 2009-04-07  2:14 Paul Vincent Craven
  2009-04-07  7:42 ` Martin Storsjö
  2009-04-09 17:20 ` Tay Ray Chuan
  0 siblings, 2 replies; 4+ messages in thread
From: Paul Vincent Craven @ 2009-04-07  2:14 UTC (permalink / raw)
  To: git

When I do a git-push from a repository I set up, I get:

craven@craven-desktop:~/docs$ git push
Unable to create branch path
http://username:password@server.simpson.edu/my_repo.git/info
Error: cannot lock existing info/refs
error: failed to push some refs to
'http://username:password@server.simpson.edu/my_repo.git/'

The web log shows:
10.1.21.232 - username [06/Apr/2009:21:24:04 -0500] "PROPFIND
/my_repo.git/ HTTP/1.1" 207 559 "-" "git/1.5.6.3"
10.1.21.232 - username [06/Apr/2009:21:24:04 -0500] "HEAD
/my_repo.git/info/refs HTTP/1.1" 200 - "-" "git/1.5.6.3"
10.1.21.232 - username [06/Apr/2009:21:24:04 -0500] "HEAD
/my_repo.git/objects/info/packs HTTP/1.1" 200 - "-" "git/1.5.6.3"
10.1.21.232 - username [06/Apr/2009:21:24:04 -0500] "MKCOL
/my_repo.git/info HTTP/1.1" 301 383 "-" "git/1.5.6.3"
10.1.21.232 - - [06/Apr/2009:21:24:04 -0500] "MKCOL /my_repo.git/info/
HTTP/1.1" 401 536 "-" "git/1.5.6.3"

Note that after the 301 redirect, I don't seem to have a username sent
anymore. I'm not sure this is the issue, but is seems like a
possibility.

I have the same issue on other computers that have cloned the repository.

The /my_repo.git/info/ directory does exist.

I thought I had this working the first day I set it up, but now it no
longer does. If someone could point me in the correct direction, I'd
appreciate it.

-- 
Paul Vincent Craven

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git over http not re-authenticating after 301 redirect?
  2009-04-07  2:14 git over http not re-authenticating after 301 redirect? Paul Vincent Craven
@ 2009-04-07  7:42 ` Martin Storsjö
  2009-04-07 19:25   ` Paul Vincent Craven
  2009-04-09 17:20 ` Tay Ray Chuan
  1 sibling, 1 reply; 4+ messages in thread
From: Martin Storsjö @ 2009-04-07  7:42 UTC (permalink / raw)
  To: Paul Vincent Craven; +Cc: git

Hi Paul,

On Mon, 6 Apr 2009, Paul Vincent Craven wrote:

> Note that after the 301 redirect, I don't seem to have a username sent
> anymore. I'm not sure this is the issue, but is seems like a
> possibility.
> 
> I have the same issue on other computers that have cloned the repository.
> 
> The /my_repo.git/info/ directory does exist.
> 
> I thought I had this working the first day I set it up, but now it no
> longer does. If someone could point me in the correct direction, I'd
> appreciate it.

It's a long shot, but try see if you can upgrade to a newer version of 
libcurl; I think I saw some issue like this when I was experimenting with 
different http auth setups last week, that was solved by using newer 
versions...

// Martin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git over http not re-authenticating after 301 redirect?
  2009-04-07  7:42 ` Martin Storsjö
@ 2009-04-07 19:25   ` Paul Vincent Craven
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Vincent Craven @ 2009-04-07 19:25 UTC (permalink / raw)
  To: Martin Storsjö; +Cc: git

On Tue, Apr 7, 2009 at 2:42 AM, Martin Storsjö <martin@martin.st> wrote:

> It's a long shot, but try see if you can upgrade to a newer version of
> libcurl; I think I saw some issue like this when I was experimenting with
> different http auth setups last week, that was solved by using newer
> versions...

No luck, but thanks for the suggestion. Updating to the March 3 build
of curl 7.19.4 yielded the same results.

-- 
Paul Vincent Craven
http://www.cravenfamily.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git over http not re-authenticating after 301 redirect?
  2009-04-07  2:14 git over http not re-authenticating after 301 redirect? Paul Vincent Craven
  2009-04-07  7:42 ` Martin Storsjö
@ 2009-04-09 17:20 ` Tay Ray Chuan
  1 sibling, 0 replies; 4+ messages in thread
From: Tay Ray Chuan @ 2009-04-09 17:20 UTC (permalink / raw)
  To: Paul Vincent Craven; +Cc: git

Hi,

On Tue, Apr 7, 2009 at 10:14 AM, Paul Vincent Craven
<paul@cravenfamily.com> wrote:
> Note that after the 301 redirect, I don't seem to have a username sent
> anymore. I'm not sure this is the issue, but is seems like a
> possibility.

could you check what version of git you have? This should have been
fixed in 1.6.1.1.

-- 
Cheers,
Ray Chuan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-09 17:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-07  2:14 git over http not re-authenticating after 301 redirect? Paul Vincent Craven
2009-04-07  7:42 ` Martin Storsjö
2009-04-07 19:25   ` Paul Vincent Craven
2009-04-09 17:20 ` Tay Ray Chuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).