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

Re: Possible race condition with git-rebase + .git/index.lock

From
Jeff King <peff@peff.net>
Date
Mar 13, 2019, 20:59 UTC
Message-ID
<20190313205926.GB5397@sigill.intra.peff.net>
In-Reply-To
<87pnqu4i1n.fsf@sergiodj.net>
On Wed, Mar 13, 2019 at 04:48:36PM -0400, Sergio Durigan Junior wrote:
> Huh, I do have some of the files opened in Emacs!  They're in
> background, but indeed, now that you mentioned I remember that Emacs
> keeps track of changes and invokes "git status" sometimes.  Next time I
> see the bug, I'll try closing the files and see if it happens again.

If Emacs (I guess maybe magit?) is running "git status" behind the scenes, you might benefit from teaching it to use "git --no-optional-locks status" instead. See the section "BACKGROUND REFRESH" in "git help status" for more discussion.

-Peff
Previous: Sergio Durigan JuniorNext: Sergio Durigan Junior
Message 12 of 14 in “Possible race condition with git-rebase + .git/index.lock”
  1. Sergio Durigan JuniorMar 11, 2019
  2. Eric SunshineMar 11, 2019
  3. Sergio Durigan JuniorMar 11, 2019
  4. Duy NguyenMar 12, 2019
  5. Sergio Durigan JuniorMar 12, 2019
  6. Elijah NewrenMar 12, 2019
  7. Sergio Durigan JuniorMar 12, 2019
  8. Elijah NewrenMar 12, 2019
  9. Sergio Durigan JuniorMar 12, 2019
  10. Phillip WoodMar 13, 2019
  11. Sergio Durigan JuniorMar 13, 2019
  12. Jeff KingMar 13, 2019
  13. Sergio Durigan JuniorMar 13, 2019
  14. MingunOct 28, 2022

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.