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

HTTP repo referencing stale heads (can't clone)

From
DDDaniel Drake <dsd@gentoo.org>
Date
Apr 3, 2006, 16:01 UTC
Message-ID
<443146EC.7060704@gentoo.org>
Hi,

I maintain a small git repo. I upload it over ssh (with git-push) to a machine where it is distributed over http:

http://dsd.object4.net/git/zd1211.git/
For some reason it is no longer possible to clone this repo over http:

walk 35afe6b3a859242a18812e7485ea8b211e24abaf walk 93d9a9f469282e1e392c16ce571da4c08805e8bb error: Couldn't get http://dsd.object4.net/git/zd1211.git/refs/heads/softmac-old for heads/softmac-old The requested URL returned error: 404 error: Could not interpret heads/softmac-old as something to pull

"softmac-old" is an old branch, which I have recently deleted. I deleted it by removing the .git/refs/heads/softmac-old file, and relying on git-prune to clear out old objects.

Even on the server-side, there is no obvious reference to this old head:

$ find -name '*softmac*' $ grep -R softmac * (no results for either)

"git-fsck-objects" reports nothing, "git-fsck-objects --full" reports: dangling commit 7cc423c942975005f96f308186537ad6e7808c2e dangling commit b36378de6231f1b5100b1517b9c8c243a21090fd

I have tried running git-prune and git-update-server-info, but that doesn't help.

Any ideas? I'm still new to git. I am running git-1.2.4

Thanks, Daniel

Next: Junio C Hamano
Message 1 of 11 in “HTTP repo referencing stale heads (can't clone)”
  1. Daniel DrakeApr 3, 2006
  2. Junio C HamanoApr 3, 2006
  3. Nick HengeveldApr 3, 2006
  4. Junio C HamanoApr 4, 2006
  5. Petr BaudisApr 4, 2006
  6. Nick HengeveldApr 4, 2006
  7. Petr BaudisApr 4, 2006
  8. Nick HengeveldApr 4, 2006
  9. Daniel DrakeApr 3, 2006
  10. Nick HengeveldApr 4, 2006
  11. Radoslaw SzkodzinskiApr 5, 2006

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.