git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Next: Dmitry Potapov
Message 1 of 6 in “Help with a possibly corrupt repo”
  1. Jonathan LetoMay 10, 2010
  2. Dmitry PotapovMay 10, 2010
  3. Jonathan LetoMay 10, 2010
  4. Dmitry PotapovMay 10, 2010
  5. Jonathan LetoMay 20, 2010
  6. Dmitry PotapovMay 21, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.