Re: [PATCH] setup: recognize bare repositories with packed-refs
- From
Jeff King <peff@peff.net>
- Date
- Dec 6, 2023, 21:08 UTC
- Message-ID
- <20231206210836.GA106480@coredump.intra.peff.net>
- In-Reply-To
- <ZWethlRRtuQLDRlJ@nand.local>
On Wed, Nov 29, 2023 at 04:30:46PM -0500, Taylor Blau wrote:
Show 13 quoted lines
> On Tue, Nov 28, 2023 at 02:04:46PM -0500, Jeff King wrote: > > - whatever is consuming the embedded repos could "mkdir -p refs > > objects" as needed. This is a minor pain, but I think in the long > > term we are moving to a world where you have to explicitly do > > "GIT_DIR=$PWD/embedded.git" to access an embedded bare repo. So > > they're already special and require some setup; adding an extra step > > may not be so bad. > > I hope not. I suppose that using embedded bare repositories in a test > requires additional setup at least to "cd" into the directory (if they > are not using `$GIT_DIR` or `--git-dir` already). But I fear that > imposing even a small change like this is too tall an order for how many > millions of these exist in the wild across all sorts of projects.
I dunno. I am skeptical that there are millions of these. Who really wants to embed bare git repos except for projects related to Git itself, which want test vectors? Is there a use case I'm missing?
-Peff