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

Git over HTTPS Oddity with HEAD

From
Sven <svoop@delirium.ch>
Date
Jun 13, 2008, 22:59 UTC
Message-ID
<loom.20080613T225103-368@post.gmane.org>
Hi

I'm using Git over HTTPS with up-to-date versions on both ends. With a populated repo, I try the following:

# git ls-remote https://git.domain.com/myapp.git HEAD
This gives me no reply at all, and indeed ...

# git ls-remote https://git.domain.com/myapp.git bb629d461b11d3c8edbc1e4f3c44085198fdaede refs/heads/master

Besides this, however, Git over HTTPS seems to work just fine and if I look inside the myapp.git on the server, a HEAD file is there:

# cat myapp.git/HEAD ref: refs/heads/master

I assume it's something fishy on the server side although I haven't done anything exotic there. Any idea what could be the reason for this?

Thanks!   -sven

PS: The background story: Capistrano (Ruby on Rails) issues the above ls-remote HEAD command during deployment, therefore not getting the head version in reply causes Capistrano to bark.

Message 1 of 1 in “Git over HTTPS Oddity with HEAD”
  1. SvenJun 13, 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.