git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Matthieu MoyNext: Mikael Magnusson
Message 3 of 9 in “Recovering the index after a git crash?”
  1. Matthieu MoyFeb 4, 2009
  2. More friendly message when locking the index fails.Matthieu Moy, Feb 4, 2009
  3. Sverre RabbelierFeb 4, 2009
  4. Mikael MagnussonFeb 6, 2009
  5. More friendly message when locking the index fails.Matthieu Moy, Feb 6, 2009
  6. More friendly message when locking the index fails.Matthieu Moy, Feb 6, 2009
  7. Junio C HamanoFeb 7, 2009
  8. More friendly message when locking the index fails.Matthieu Moy, Feb 19, 2009
  9. Sverre RabbelierFeb 19, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.