Re: "lock file exists" when fetching in bare clone of repository
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 21, 2025, 15:47 UTC
- Message-ID
- <xmqqcy8o4qyd.fsf@gitster.g>
- In-Reply-To
- <20250821072706.GA2390046@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
>> But with batched transactions that's not possible anymore, as we would >> indeed try to lock the same ref twice. Assuming that this really is the >> case, I wonder whether we should detect this case, tell the user that >> it's impossible to store all refs on their system, and then continue >> regardless while ejecting that specific ref from the transaction. > > Maybe it is too optimistic to think that they will just start using > reftable in Git 3.0, and we can avoid extra code to detect this?
Or we can just tell them to use reftable way before Git 3.0; it is not like we feel that the reftable is way too unstable that we won't tag Git 3.0 until it gets ready---it is ready now.