From: Mikael Magnusson <mikachu@gmail.com>
To: Matthieu Moy <Matthieu.Moy@imag.fr>
Cc: git <git@vger.kernel.org>
Subject: Re: Recovering the index after a git crash?
Date: Fri, 6 Feb 2009 14:38:48 +0100 [thread overview]
Message-ID: <237967ef0902060538r1189573aob15c8e40512343ce@mail.gmail.com> (raw)
In-Reply-To: <vpqljsma99t.fsf@bauges.imag.fr>
2009/2/4 Matthieu Moy <Matthieu.Moy@imag.fr>:
> Hi,
>
> I'm debugging a git assertion failure, which leaves a .git/index.lock
> in the way. After running the failed command, git refuses to do
> anything in this directory, complaining with:
>
> fatal: unable to create '.git/index.lock': File exists
>
> What I'm doing then is just "rm .git/index.lock". Is it safe to do it?
> I guess I should just make sure there's no git process running, but is
> there anything else to check?
It should be safe, yes. Often it is even safe to remove .git/index
itself, since you can restore it from the latest commit with 'git
reset'.
--
Mikael Magnusson
next prev parent reply other threads:[~2009-02-06 13:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-04 8:36 Recovering the index after a git crash? Matthieu Moy
2009-02-04 9:58 ` [PATCH/RFC] More friendly message when locking the index fails Matthieu Moy
2009-02-04 11:50 ` Sverre Rabbelier
2009-02-06 13:38 ` Mikael Magnusson [this message]
2009-02-06 14:36 ` [PATCH] " Matthieu Moy
2009-02-06 15:09 ` [PATCH v3] " Matthieu Moy
2009-02-07 0:37 ` Junio C Hamano
2009-02-19 12:54 ` [PATCH] " Matthieu Moy
2009-02-19 14:12 ` Sverre Rabbelier
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=237967ef0902060538r1189573aob15c8e40512343ce@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=Matthieu.Moy@imag.fr \
--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).