Re: BUG! missing .idx causes .pack to be removed
- From
- Enrico Weigelt <weigelt@metux.de>
- Date
- Aug 13, 2010, 16:02 UTC
- Message-ID
- <20100813160221.GA10974@nibiru.local>
- In-Reply-To
- <4C5BB64A.4070601@lsrfire.ath.cx>
* René Scharfe <rene.scharfe@lsrfire.ath.cx> wrote:
Show 5 quoted lines
> > 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.
ACK. packfiles are completely self-contained - the index files are only used for lookup and can be created any time (IMHO that's also done automatically on remote transfers). So removing a packfile, just because the index is missing, causes an serious data loss. That's what I'd consider a critical bug!
The correct solution would be either recreating the index automatically or at least spit out an big-fat warning.
cu
-- ---------------------------------------------------------------------- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: weigelt@metux.de mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 ---------------------------------------------------------------------- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ----------------------------------------------------------------------