From: Matthieu Moy <Matthieu.Moy@imag.fr>
To: git <git@vger.kernel.org>
Subject: Recovering the index after a git crash?
Date: Wed, 04 Feb 2009 09:36:30 +0100 [thread overview]
Message-ID: <vpqljsma99t.fsf@bauges.imag.fr> (raw)
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?
I'll write a FAQ entry on the wiki with answers, and that would
probably be a good idea to give indication to the user directly in the
error message too, otherwise, the problem can be blocking for
beginners.
Thanks,
<my life>
I had to support students using SVN for a month in January, and even
when SVN says:
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)
it's still hard for many students to understand that they have to run
"svn cleanup" and prefer sending me a mail saying "it doesn't work
anymore" :-(.
</my life>
--
Matthieu
next reply other threads:[~2009-02-04 8:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-04 8:36 Matthieu Moy [this message]
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 ` Recovering the index after a git crash? Mikael Magnusson
2009-02-06 14:36 ` [PATCH] More friendly message when locking the index fails 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=vpqljsma99t.fsf@bauges.imag.fr \
--to=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).