git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Leto <jaleto@gmail.com>
To: git@vger.kernel.org
Subject: Help with a possibly corrupt repo
Date: Mon, 10 May 2010 12:37:36 -0700	[thread overview]
Message-ID: <AANLkTiks5g7BvLXBrUcb0m5dCiIrBifjDUKBDScXd1dw@mail.gmail.com> (raw)

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

             reply	other threads:[~2010-05-10 19:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-10 19:37 Jonathan Leto [this message]
2010-05-10 20:17 ` Help with a possibly corrupt repo 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTiks5g7BvLXBrUcb0m5dCiIrBifjDUKBDScXd1dw@mail.gmail.com \
    --to=jaleto@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).