mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Nasty git corruption problem
@ 2006-07-26 16:01 Alan Cox
  2006-07-26 17:07 ` Linus Torvalds
  0 siblings, 1 reply; 12+ messages in thread
From: Alan Cox @ 2006-07-26 16:01 UTC (permalink / raw)
  To: linux-kernel, torvalds

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.







^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-07-27 21:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-26 16:01 Nasty git corruption problem Alan Cox
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

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®