From: Dave Jones Date: Sun, 18 Sep 2005 03:18:37 GMT Subject: Re: Fix archive-destroying "git repack -a -d" bug Message-ID: <20050918031837.GB23405@redhat.com> In-Reply-To: On Sat, Sep 17, 2005 at 06:46:40PM -0700, Linus Torvalds wrote: > > Using "git repack -a -d" can destroy your git archive if you use it twice > in succession. > > Why? Because the new pack will be called the same as the old pack. And we > delete the old packs _after_ we've moved the new pack to the .git/objects/ > directory, which means that we'll delete the new pack too! Hmm, I'm sure I've done this several times in my x86info git repo (http://www.codemonkey.org.uk/projects/x86info/x86info.git) It seems to look ok to git-fsck-cache though. Would that pick up any breakage if present ? Running git-whatchanged, the history seems to go all the way back to the beginning of its cvs doppelganger. Dave