git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Help with a possibly corrupt repo
@ 2010-05-10 19:37 Jonathan Leto
  2010-05-10 20:17 ` Dmitry Potapov
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Leto @ 2010-05-10 19:37 UTC (permalink / raw)
  To: git

Howdy,

Due to a network (or possibly disk) error, I started getting this error:

$ git --version
git version 1.7.1.166.gf2086
error: garbage at end of loose object '66fdbaef5ae12a8402f6b0f7c1a73a3ce72e8eba'
fatal: object 66fdbaef5ae12a8402f6b0f7c1a73a3ce72e8eba is corrupte$ git reflog
291cf66 HEAD@{0}: commit: Class::MethodMaker
44c9cdb HEAD@{1}: commit: TAP::Harness::Archive
89053c5 HEAD@{2}: HEAD^: updating HEAD
b6eb92a HEAD@{3}: commit: TAP::Harness::Archive
89053c5 HEAD@{4}: commit: Bio::Perl 1.006001
c745fed HEAD@{5}: commit: MooseX::Declare
d4097d4 HEAD@{6}: commit (initial): Initial .modulebuildrc
error: garbage at end of loose object '66fdbaef5ae12a8402f6b0f7c1a73a3ce72e8eba'
fatal: object 66fdbaef5ae12a8402f6b0f7c1a73a3ce72e8eba is corrupted

$ uname -a
Linux datura 2.6.31-21-generic #59-Ubuntu SMP Wed Mar 24 07:28:27 UTC
2010 x86_64 GNU/Linux

This git was built from the 'next' branch a few days ago. Is there
anyway to fix my repo? I can provide a copy of my .git directory if
needed, but it is 54MB. As for background, this repo contained a set
of CPAN modules, via local::lib, so it had many files but only a few
commits.

I tried "git gc", but it borks on the corrupt sha1:

$ git gc
error: garbage at end of loose object '66fdbaef5ae12a8402f6b0f7c1a73a3ce72e8eba'
fatal: object 66fdbaef5ae12a8402f6b0f7c1a73a3ce72e8eba is corrupted
error: failed to run repack

Thanks for any help anybody can give.

Duke


-- 
Jonathan "Duke" Leto
jonathan@leto.net
http://leto.net

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

end of thread, other threads:[~2010-05-21  3:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-10 19:37 Help with a possibly corrupt repo Jonathan Leto
2010-05-10 20:17 ` Dmitry Potapov
2010-05-10 21:05   ` Jonathan Leto
2010-05-10 21:28     ` Dmitry Potapov
2010-05-20 14:57       ` Jonathan Leto
2010-05-21  2:59         ` Dmitry Potapov

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).