From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: linux-kernel@vger.kernel.org, torvalds@osdl.org
Subject: Nasty git corruption problem
Date: Wed, 26 Jul 2006 17:01:55 +0100 [thread overview]
Message-ID: <1153929715.13509.12.camel@localhost.localdomain> (raw)
Just hit a real nasty, although I suspect its not a common case but it
does seem to show a problem git has other version control systems don't
(so far anyway)
During a git rebase my machine crashed. Git claims that the rebase is
complete but contains none of the outstanding 30 odd patches. There is
no .dotest directory and git-fsck-objects produces some warnings about a
few dangling objects, but these objects aren't the relevant ones (at
least directly)
CVS and SVN in crashes don't lose old stuff, though they are pretty good
at losing the last commit or two. Git rebase appears to be able to lose
two weeks of old changes even though they were stable on disk, which is
not good at all.
Doing
for i in *; do (cd $i; for j in *; do git-unpack-file $i$j; done; );
done
shows that lots of the changes are still somewhere in the object tree
but there seems to be no tool for fixing rather than moaning about
objects dangling, and also no obvious way to fix it. Also curiously many
of the objects appear linked somewhere but don't show up in the git-log
for the afflicted branch at all.
next reply other threads:[~2006-07-26 15:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-26 16:01 Alan Cox [this message]
2006-07-26 17:07 ` Linus Torvalds
2006-07-26 17:36 ` Johannes Schindelin
2006-07-26 17:41 ` Linus Torvalds
2006-07-26 17:43 ` Linus Torvalds
2006-07-27 18:32 ` Alan Cox
2006-07-27 19:07 ` Linus Torvalds
2006-07-27 20:48 ` Johannes Schindelin
2006-07-27 21:01 ` Linus Torvalds
2006-07-27 21:11 ` Johannes Schindelin
2006-07-26 18:09 ` Carl Worth
2006-07-26 21:55 ` Alex Riesen
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=1153929715.13509.12.camel@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®