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

Re: How to mirror and augment a git repository

From
Jeff King <peff@peff.net>
Date
Mar 13, 2023, 16:30 UTC
Message-ID
<ZA9Pr90hFpSQaaU/@coredump.intra.peff.net>
In-Reply-To
<87pm9d6drp.fsf@sebyte.me>
On Sun, Mar 12, 2023 at 06:11:22PM +0000, Sebastian Tennant wrote:
Show 8 quoted lines
> > You'd have refs under refs/heads at this point.  They were created
> > when you did the original bare clone (since bare clones fetch all
> > heads to start with, though they don't set up a refspec).
> 
> I see the refs under refs/heads at last!
> 
> My mistake was looking for them in the file system (instead of in file
> ‘packed-refs’).

The best way to check is "git for-each-ref", which handles the storage details (including if we ever move to a new storage mechanism like reftable).

> The problem was in my partial understanding of the consequences of
> passing option --bare to ‘git clone’ (and in my not thinking to look
> in file ‘packed-refs’).

To be fair, I usually have to double-check the rules for "--bare" myself. :)

Glad everything is working now.
-Peff
Previous: Sebastian Tennant
Message 10 of 10 in “How to mirror and augment a git repository”
  1. Sebastian TennantMar 4, 2023
  2. Bagas SanjayaMar 5, 2023
  3. Sebastian TennantMar 5, 2023
  4. Jeff KingMar 6, 2023
  5. Sebastian TennantMar 8, 2023
  6. Jeff KingMar 9, 2023
  7. Sebastian TennantMar 11, 2023
  8. Jeff KingMar 11, 2023
  9. Sebastian TennantMar 12, 2023
  10. Jeff KingMar 13, 2023

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.