git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Piotr Krukowiecki <piotr.krukowiecki.news@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Corrupted git repository?
Date: Tue, 15 Feb 2011 12:00:50 -0800	[thread overview]
Message-ID: <7vk4h1nk3x.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <AANLkTimMon7ztbyT26YhotiZ=jd=QpNTvOkPCKwHg+e_@mail.gmail.com> (Piotr Krukowiecki's message of "Tue\, 15 Feb 2011 15\:57\:20 +0100")

Piotr Krukowiecki <piotr.krukowiecki.news@gmail.com> writes:

> it looks like my git repository got corrupted today.
>
> git status shows no changes,
> git cherry-pick says "error: Your local changes to the following files
> would be overwritten by merge:",

with some paths, or without naming any path?

> git fsck starts checking objects but hangs on one "Checking tree"

I take it that you are talking about "git fsck -v".  Is it really "hangs",
or just "takes a long time"?  You mentioned that a clone is expensive so I
am guessing that your repository has some huge trees or objects in
general.

The details you gave in your message are a bit sketchy to give you an
exact diagnosis, but if "cherry-pick" stops with the above message and
tells you the names of files that are not tracked in your current branch,
I don't see there is anything unusual going on.  You have these files with
random contents that git does not know about, and git is refusing to
lose their contents by overwriting them during the cherry-pick.

After making sure that they are indeed untracked paths, if you think you
can remove them (or move them away), first do so and retry cherry-pick,
and then everything should be Ok.

  reply	other threads:[~2011-02-15 20:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-15 14:57 Corrupted git repository? Piotr Krukowiecki
2011-02-15 20:00 ` Junio C Hamano [this message]
2011-02-16 16:44   ` Piotr Krukowiecki
2011-02-16 18:54     ` Johannes Sixt
2011-02-16 19:21       ` Piotr Krukowiecki

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=7vk4h1nk3x.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=piotr.krukowiecki.news@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).