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

Re: git pull fails with http urls?

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 4, 2007, 19:17 UTC
Message-ID
<7vsl5umea5.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1188915053.5705.12.camel@localhost.localdomain>

Pasky seems to have a locally modified version at repo.or.cz to add HEAD to the result of update-server-info, but as far as I can see, update-server-info never placed HEAD in the result, and I do not think ls-remote compensated it by adding HEAD by hand, so that change is fixing the symptom rather than fixing the regression, but I am not sure where the true regression is. Most likely we broke git-fetch while trying to deal with repositories with insanely large number of refs (aka "fetch--tool partial rewrite in C").

Having said all that, I think it is a good idea nevertheless to add HEAD information across all transports, like Pasky's patch does. Currently http/ftp/rsync do not report HEAD while git native protocols do.

Pasky, care to submit "server-info: Add HEAD to info/refs" for inclusion?

Previous: Richard Purdie
Message 2 of 2 in “git pull fails with http urls?”
  1. Richard PurdieSep 4, 2007
  2. Junio C HamanoSep 4, 2007

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.