From: Junio C Hamano Date: Thu, 21 Aug 2025 15:47:22 GMT Subject: Re: "lock file exists" when fetching in bare clone of repository Message-ID: In-Reply-To: <20250821072706.GA2390046@coredump.intra.peff.net> Jeff King writes: >> 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.