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

Re: git-push on packed refs via HTTP

From
SSteve <shrotty@gmx.ch>
Date
Mar 27, 2009, 10:20 UTC
Message-ID
<loom.20090327T102017-250@post.gmane.org>
In-Reply-To
<alpine.DEB.1.00.0903201341220.6865@intel-tinevez-2-302>
Hi Dscho

Thanks for your snippet, that did the trick. I only had to alter it slightly because the repo on the server is bare:

git show-ref |
while read sha1 name
do
  mkdir -p $(dirname $name) &&
  echo $sha1 > $name
done

Just for understanding: Why is this step necessary? Does it have anything to do with serving the repo over HTTP at all?

Cheers, Steve
Previous: Johannes Schindelin
Message 9 of 9 in “git-push on packed refs via HTTP”
  1. SteveMar 20, 2009
  2. Thomas JaroschMar 20, 2009
  3. SteveMar 20, 2009
  4. Andreas EricssonMar 20, 2009
  5. SteveMar 20, 2009
  6. Tay Ray ChuanMar 20, 2009
  7. SteveMar 20, 2009
  8. Johannes SchindelinMar 20, 2009
  9. SteveMar 27, 2009

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.