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