Re: [PATCH] setup: recognize bare repositories with packed-refs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 12/6/23 22:08, Jeff King wrote:
On Wed, Nov 29, 2023 at 04:30:46PM -0500, Taylor Blau wrote:

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?
Well, it's an "easy" thing to do, instead of recreating these test cases from sources like it's done here. It seems this is what happens in projects like Gitea.

As to the original questions you've raised earlier in the thread, I thought about it, and I don't really have a compelling reason to try to force this patch into Git. At least, I do not feel it necessary to try to argue the points you've raised. If that means the patch is ignored, I'm ok with that.

The reasons I put it here is simply I found that it fixes an issue I came across and that "everything else" worked. I don't know the intricacies of current or future git plans and I would rather delegate such discussion to the experts.

Best regards,
Adam




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux