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

HTTP redirection with git-clone/git-fetch ?

From
JWJosef Weidendorfer <josef.weidendorfer@gmx.de>
Date
Nov 9, 2005, 22:31 UTC
Message-ID
<200511092331.36421.Josef.Weidendorfer@gmx.de>
Hi,

git-clone fails silently with a HTTP URL where the server responds with a redirection (ie. header line "Location:..."). I tried to add "-L" to the curl command line in git-clone.sh, but this is only half of a fix. Afterwards I get:

defaulting to local storage area error: Couldn't get http://repo/project.git/refs/heads/origin for heads/origin Failed writing body error: Could not interpret heads/origin as something to pull

This seems because git-fetch should understand redirections, too. I am not familiar to the curl API. So perhaps another one can try to fix this?

Josef
Next: Nick Hengeveld
Message 1 of 4 in “HTTP redirection with git-clone/git-fetch ?”
  1. Josef WeidendorferNov 9, 2005
  2. Nick HengeveldNov 10, 2005
  3. Josef WeidendorferNov 10, 2005
  4. Junio C HamanoNov 11, 2005

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.