Re: [PATCH/RFC] More friendly message when locking the index fails.
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Feb 4, 2009, 11:50 UTC
- Message-ID
- <bd6139dc0902040350n3af5d37ctc6976fd77671fb82@mail.gmail.com>
- In-Reply-To
- <1233741505-24020-1-git-send-email-Matthieu.Moy@imag.fr>
On Wed, Feb 4, 2009 at 10:58, Matthieu Moy <Matthieu.Moy@imag.fr> wrote:
> + "This probably means a git process crashed in this repository earlier.\n" > + "Make sure no other git process is running and remove the file manually.", > + get_index_file(), strerror(lock_error));
How about "If no other git process is currently running, this probably means...." instead? E.g., sometimes I run 'git commit' in one terminal window, and then switch to another before committing (to review the diff for example), which would cause an index.lock file to be present validly.
-- Cheers, Sverre Rabbelier