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

Re: [BUG REPORT] "git ls-remote http://git.domain.com/repo.git HEAD" doesn't work

From
Mike Hommey <mh@glandium.org>
Date
Jun 14, 2008, 09:02 UTC
Message-ID
<20080614090244.GA1262@glandium.org>
In-Reply-To
<loom.20080614T074854-525@post.gmane.org>
On Sat, Jun 14, 2008 at 07:49:06AM +0000, Sven wrote:
Show 5 quoted lines
> Junio C Hamano <gitster <at> pobox.com> writes:
> > Traditionally it _never_ talked about HEAD as it technically is not a ref.
> 
> How likely is it that ls-remote HEAD is added for HTTP as well rather than
> stripped for all protocols?
When someone sends a patch ;)

FWIW, quickly looking at the code, it seems the rsync backend may have the same problem. Now, I wonder if other protocols allow to use other refs such as FETCH_HEAD, or if they special case HEAD. I don't have enough time to look this up.

Mike
Previous: SvenNext: Jeff King
Message 5 of 13 in “[BUG REPORT] "git ls-remote http://git.domain.com/repo.git HEAD" doesn't work”
  1. SvenJun 14, 2008
  2. Mike HommeyJun 14, 2008
  3. Junio C HamanoJun 14, 2008
  4. SvenJun 14, 2008
  5. Mike HommeyJun 14, 2008
  6. Jeff KingJun 14, 2008
  7. Mike HommeyJun 14, 2008
  8. SvenJun 14, 2008
  9. Jeff KingJun 14, 2008
  10. SvenJun 14, 2008
  11. Junio C HamanoJun 14, 2008
  12. SvenJun 14, 2008
  13. Jeff KingJun 14, 2008

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.