* Replacing a corrupt blob
@ 2010-11-09 17:02 Joshua Jensen
0 siblings, 0 replies; only message in thread
From: Joshua Jensen @ 2010-11-09 17:02 UTC (permalink / raw)
To: git@vger.kernel.org
I just helped someone fix a repository where a blob became corrupted a
while back when passing through Dropbox. No backup of the original blob
existed.
The user told me the contents of the blob was unimportant.
Thinking I could be clever, I ran 'git replace' to replace the blob with
something else. I thought I could run 'git clone' or 'git
filter-branch' to apply it permanently, but that didn't seem to work.
In the end, I ran 'git fast-export', changed the blob SHA, and then ran
'git fast-import'. 'git fsck' still told me the blob was corrupt, and I
couldn't determine the sequence of commands to make it clear out the bad
blob (expire the reflog, prune, etc).
I was able to 'git clone' to another location, and the bad blob was gone.
Is there another way to permanently replace a corrupt blob?
What is the right way to remove the corrupt blob without running 'git
clone'?
Thanks!
Josh
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-09 17:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-09 17:02 Replacing a corrupt blob Joshua Jensen
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).