Thread (1 message) 1 message, 1 author, 2016-06-15

Re: fsck option to remove corrupt objects - why/why not?

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:02:44

Johan Herland [off-list ref] writes:
I simply copied the packfile containing the good copy into the
corrupted repo, and then ran a "git gc", which "happened" to use the
good copy of the corrupted object and complete successfully (instead
of barfing on the bad copy). The GC then removed the old
(now-obsolete) packfiles, and thus the corruption was gone.

However, exactly _why_ git happened to prefer the good copy in my
copied packfile instead of the bad copy in the existing packfile, I do
not know.
By design ;-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help