From: René Scharfe Date: Fri, 06 Aug 2010 07:14:18 GMT Subject: Re: BUG! missing .idx causes .pack to be removed Message-ID: <4C5BB64A.4070601@lsrfire.ath.cx> In-Reply-To: Am 06.08.2010 05:24, schrieb Tay Ray Chuan: > Hi, > > On Fri, Aug 6, 2010 at 1:01 AM, Enrico Weigelt wrote: >> while doing some experiments I've removed the *.idx files and >> ran git-repack - that complained about missing objects and removed >> all *.pack files ! >> >> I'm sure that's a bug - an ugly one ;-o > > IIRC, a .pack file is useless without its corresponding .idx file. So > the removal of a .pack file makes sense here - to me, at least. git-index-pack can rebuild the index for a pack file. Not sure if it should be done automagically, but the file is not completely useless. René