git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git over http not re-authenticating after 301 redirect?

From
PCPaul Vincent Craven <paul@cravenfamily.com>
Date
Apr 7, 2009, 02:14 UTC
Message-ID
<5591393c0904061914y5ea26812kcfc0d14b52ed4300@mail.gmail.com>
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
Next: Martin Storsjö
Message 1 of 4 in “git over http not re-authenticating after 301 redirect?”
  1. Paul Vincent CravenApr 7, 2009
  2. Martin StorsjöApr 7, 2009
  3. Paul Vincent CravenApr 7, 2009
  4. Tay Ray ChuanApr 9, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.