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

Re: Cannot use cg-clone over http after packing a public repo

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Aug 19, 2005, 03:55 UTC
Message-ID
<46a038f905081820552df81905@mail.gmail.com>
In-Reply-To
<46a038f905081820353988dfdd@mail.gmail.com>

Resolved. I was missing a call to git-update-server-info. It fails to make the objects/info directory, so that had to be done manually.

  GIT_DIR=~/public_html/repos/moodle.git git-update-server-info 
  error: cannot open
/home/martin/public_html/repos/moodle.git/objects/info/packs+
  mkdir ~/public_html/repos/moodle.git/objects/info
  GIT_DIR=~/public_html/repos/moodle.git git-update-server-info 

And all is well. I'll update the documentation to note that dumb protocols will need this. Looking at server-info.c, there _is_ a call to safe_create_leading_directories(), not sure why it'd fail. I'm not much of a C jockey, really.

This is with git as of a couple of ours ago: 66e06b6a17f1074401ad23f4b2a8a146b2900333

cheers,
martin
Previous: Martin Langhoff
Message 2 of 2 in “Cannot use cg-clone over http after packing a public repo”
  1. Martin LanghoffAug 19, 2005
  2. Martin LanghoffAug 19, 2005

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.