Help with a possibly corrupt repo
- From
Jonathan Leto <jaleto@gmail.com>
- Date
- May 10, 2010, 19:37 UTC
- Message-ID
- <AANLkTiks5g7BvLXBrUcb0m5dCiIrBifjDUKBDScXd1dw@mail.gmail.com>
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