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

git-rm -n leaves .git/index.lock if not allowed to finish

From
jidanni@jidanni.org <jidanni@jidanni.org>
Date
Dec 18, 2008, 20:02 UTC
Message-ID
<87prjptfo7.fsf@jidanni.org>
Bug: if git-rm -n is not allowed to write all it wants to write, it
will leave a .git/index.lock file:
# git-rm -n -r . 2>&1|sed q
error: '.etckeeper' has changes staged in the index
# git-rm -n -r . 2>&1|sed q
fatal: unable to create '.git/index.lock': File exists
Next: Miklos Vajna
Message 1 of 6 in “git-rm -n leaves .git/index.lock if not allowed to finish”
  1. jidanni@jidanni.orgDec 18, 2008
  2. Miklos VajnaDec 19, 2008
  3. Junio C HamanoDec 19, 2008
  4. Miklos VajnaDec 19, 2008
  5. Junio C HamanoDec 19, 2008
  6. Junio C HamanoDec 19, 2008

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.