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, 07:10 UTC
Message-ID
<20080614071011.GA29699@glandium.org>
In-Reply-To
<loom.20080614T065448-251@post.gmane.org>
On Sat, Jun 14, 2008 at 07:03:36AM +0000, Sven wrote:
Show 19 quoted lines
> Hi
> 
> Following up my recent post, I'm now pretty sure this is a bug. Apparently,
> ls-remote does not list the HEAD version when used over HTTP(S) whereas it does
> work otherwise. Check this out:
> 
> over HTTP - no HEAD listed here:
> git ls-remote http://www.kernel.org/pub/scm/git/git.git
> 
> over GIT - HEAD is listed in this case:
> git ls-remote git://github.com/lux/sitellite.git 
> 
> As Capistrano relies on "git ls-remote http://git.domain.com/repo.git HEAD" to
> find out which version to pull, you can't deploy from Git over HTTP(S) repos for
> now. Capistrano is the de facto standard for deploying Ruby on Rails (and
> related) web applications.
> 
> Thanks a lot for looking into this!! (My knowledge unfortunately doesn't allow
> me to submit a patch myself.)
$ GIT_CURL_VERBOSE=1 git ls-remote http://www.kernel.org/pub/scm/git/git.git HEAD
* Couldn't find host www.kernel.org in the .netrc file, using defaults
* About to connect() to www.kernel.org port 80 (#0)
*   Trying 204.152.191.37... * Connected to www.kernel.org (204.152.191.37) port 80 (#0)
> GET /pub/scm/git/git.git/info/refs HTTP/1.1
User-Agent: git/1.5.5.4
Host: www.kernel.org
Accept: */*
< HTTP/1.1 200 OK
< Date: Sat, 14 Jun 2008 07:08:36 GMT
< Server: Apache/2.2.2 (Fedora)
< Last-Modified: Sat, 14 Jun 2008 05:04:30 GMT
< ETag: "14225449-66de-44f9954509380"
< Accept-Ranges: bytes
< Content-Length: 26334
< Content-Type: text/plain; charset=UTF-8
< 
* Expire cleared
* Connection #0 to host www.kernel.org left intact

http://www.kernel.org/pub/scm/git/git.git/info/refs doesn't contain HEAD. Shouldn't it ?

Mike
Previous: SvenNext: Junio C Hamano
Message 2 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.