{"thread":{"id":"24642","subject":"BUG! missing .idx causes .pack to be removed","startedAt":"2010-08-05T17:01:37Z","lastAt":"2010-08-13T16:02:21Z","messageCount":4,"participants":["Enrico Weigelt","Tay Ray Chuan","René Scharfe"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"147226","messageId":"20100805170137.GA2630@nibiru.local","threadId":"24642","inReplyTo":null,"subject":"BUG! missing .idx causes .pack to be removed","fromName":"Enrico Weigelt","fromEmail":"weigelt@metux.de","sentAt":"2010-08-05T17:01:37Z","receivedAt":"2010-08-05T17:01:37Z","isPatch":false,"sender":{"key":"weigelt@metux.de","avatar":null},"body":"Hi folks,\n\n\nwhile doing some experiments I've removed the *.idx files and \nran git-repack - that complained about missing objects and removed\nall *.pack files !\n\nI'm sure that's a bug - an ugly one ;-o\n\n\ncu\n-- \n----------------------------------------------------------------------\n Enrico Weigelt, metux IT service -- http://www.metux.de/\n\n phone:  +49 36207 519931  email: weigelt@metux.de\n mobile: +49 151 27565287  icq:   210169427         skype: nekrad666\n----------------------------------------------------------------------\n Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme\n----------------------------------------------------------------------\n"},{"id":"147289","messageId":"AANLkTi=bjM7rGSXv0eB5+6VEX=wY84upkzDcBJ6C9KdK@mail.gmail.com","threadId":"24642","inReplyTo":"20100805170137.GA2630@nibiru.local","subject":"Re: BUG! missing .idx causes .pack to be removed","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2010-08-06T03:24:43Z","receivedAt":"2010-08-06T03:24:43Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nOn Fri, Aug 6, 2010 at 1:01 AM, Enrico Weigelt <weigelt@metux.de> wrote:\n> while doing some experiments I've removed the *.idx files and\n> ran git-repack - that complained about missing objects and removed\n> all *.pack files !\n>\n> I'm sure that's a bug - an ugly one ;-o\n\nIIRC, a .pack file is useless without its corresponding .idx file. So\nthe removal of a .pack file makes sense here - to me, at least.\n\n-- \nCheers,\nRay Chuan\n"},{"id":"147298","messageId":"4C5BB64A.4070601@lsrfire.ath.cx","threadId":"24642","inReplyTo":"AANLkTi=bjM7rGSXv0eB5+6VEX=wY84upkzDcBJ6C9KdK@mail.gmail.com","subject":"Re: BUG! missing .idx causes .pack to be removed","fromName":"René Scharfe","fromEmail":"rene.scharfe@lsrfire.ath.cx","sentAt":"2010-08-06T07:14:18Z","receivedAt":"2010-08-06T07:14:18Z","isPatch":false,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"Am 06.08.2010 05:24, schrieb Tay Ray Chuan:\n> Hi,\n> \n> On Fri, Aug 6, 2010 at 1:01 AM, Enrico Weigelt <weigelt@metux.de> wrote:\n>> while doing some experiments I've removed the *.idx files and\n>> ran git-repack - that complained about missing objects and removed\n>> all *.pack files !\n>>\n>> I'm sure that's a bug - an ugly one ;-o\n> \n> IIRC, a .pack file is useless without its corresponding .idx file. So\n> the removal of a .pack file makes sense here - to me, at least.\n\ngit-index-pack can rebuild the index for a pack file.  Not sure if it\nshould be done automagically, but the file is not completely useless.\n\nRené\n"},{"id":"148002","messageId":"20100813160221.GA10974@nibiru.local","threadId":"24642","inReplyTo":"4C5BB64A.4070601@lsrfire.ath.cx","subject":"Re: BUG! missing .idx causes .pack to be removed","fromName":"Enrico Weigelt","fromEmail":"weigelt@metux.de","sentAt":"2010-08-13T16:02:21Z","receivedAt":"2010-08-13T16:02:21Z","isPatch":false,"sender":{"key":"weigelt@metux.de","avatar":null},"body":"* René Scharfe <rene.scharfe@lsrfire.ath.cx> wrote:\n> > IIRC, a .pack file is useless without its corresponding .idx file. So\n> > the removal of a .pack file makes sense here - to me, at least.\n> \n> git-index-pack can rebuild the index for a pack file.  Not sure if it\n> should be done automagically, but the file is not completely useless.\n\nACK. packfiles are completely self-contained - the index files are\nonly used for lookup and can be created any time (IMHO that's also\ndone automatically on remote transfers). So removing a packfile,\njust because the index is missing, causes an serious data loss.\nThat's what I'd consider a critical bug!\n\nThe correct solution would be either recreating the index\nautomatically or at least spit out an big-fat warning.\n\n\ncu\n-- \n----------------------------------------------------------------------\n Enrico Weigelt, metux IT service -- http://www.metux.de/\n\n phone:  +49 36207 519931  email: weigelt@metux.de\n mobile: +49 151 27565287  icq:   210169427         skype: nekrad666\n----------------------------------------------------------------------\n Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme\n----------------------------------------------------------------------\n"}]}