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

Re: git commit hangs when run concurrently on macos

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Oct 1, 2024, 04:29 UTC
Message-ID
<CAPig+cSBvU8Ne29SpV7fZeRPmU25EPQxxxmE+agyM303kDoPCA@mail.gmail.com>
In-Reply-To
<CAJ7FMP0RqfUc0TKxJWn+tGq6tRhhABmbpd+xJMc7SRL6F5=JgA@mail.gmail.com>
On Mon, Sep 30, 2024 at 4:58 PM Bennet Huber <bennet.huber@gmail.com> wrote:
Show 9 quoted lines
> After running this, wait for output to subside, then run `jobs`.
> On my machine, I usually see 5-10 hung "git commit" jobs.
>
> > 3:39:04.020533 run-command.c:758       trace: start_command: /opt/homebrew/opt/git/libexec/git-core/git fsmonitor--daemon run --detach --ipc-threads=8
>
> Setting `USE_FS_MONITOR=false` in the code above consistently results
> in no hung "git commit" commands, which leads me to suspect the
> problem has to do with the fsmonitor feature.  It's also a decent,
> though difficult to discover, workaround.

I don't use fsmonitor and haven't particularly been following the issue, but there are some active threads on the mailing list regarding fsmonitor hanging on macOS. Perhaps they are relevant to your case.

https://lore.kernel.org/git/20240930194600.GA1805534@coredump.intra.peff.net/T/
https://lore.kernel.org/git/20240509162219.GA1707955@coredump.intra.peff.net/T/
https://lore.kernel.org/git/pull.1802.git.1727577690390.gitgitgadget@gmail.com/T/
Previous: Bennet Huber
Message 2 of 2 in “git commit hangs when run concurrently on macos”
  1. Bennet HuberSep 30, 2024
  2. Eric SunshineOct 1, 2024

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.