From: Junio C Hamano Date: Thu, 03 Feb 2011 07:24:56 GMT Subject: Re: Q: does index-pack work in place on windows? Message-ID: <7vk4hhwpfb.fsf@alter.siamese.dyndns.org> In-Reply-To: Nicolas Pitre writes: >> $ git index-pack >> .git/objects/pack/pack-d634271f4d7ca70c00148e967a343c3c46cd7705.pack >> Unlink of file '.git/objects/pack/pack-d634271f4d7ca70c00148e967a343c3c46cd7705.idx' >> failed. Should I try again? (y/n)? n >> fatal: unable to create >> '.git/objects/pack/pack-d634271f4d7ca70c00148e967a343c3c46cd7705.idx': >> File exists > > Why would you do such thing in the first place? > > If the pack exists along with its index on disk, there is no point > recreating it. Maybe index-pack should just bail out early in that > case. I am trying to see if an index-pack with slight modification would be a good replacement for verify-pack.