From: Dave Jones <davej@redhat.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Git Mailing List <git@vger.kernel.org>, Junio C Hamano <junkio@cox.net>
Subject: Re: Fix archive-destroying "git repack -a -d" bug
Date: Sat, 17 Sep 2005 23:18:37 -0400 [thread overview]
Message-ID: <20050918031837.GB23405@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0509171839590.26803@g5.osdl.org>
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
next prev parent reply other threads:[~2005-09-18 3:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-18 1:46 Fix archive-destroying "git repack -a -d" bug Linus Torvalds
2005-09-18 3:18 ` Dave Jones [this message]
2005-09-18 17:00 ` Linus Torvalds
2005-09-18 17:26 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050918031837.GB23405@redhat.com \
--to=davej@redhat.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).