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

Re: concurrent access to multiple local git repos is error prone

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Aug 5, 2018, 08:11 UTC
Message-ID
<20180805081116.GG44140@aiede.svl.corp.google.com>
In-Reply-To
<CA+KyZp4Yc4_Xaw3v+BPwxi_PW75=GXmj=Re7EpsurXi2_hMc9w@mail.gmail.com>
Alexander Mills wrote:
> Yeah in this case what appeared to be happening is that if `git status` was
> called concurrently, frequently I wouldnt get any stdout..
Thanks for reporting.  A few questions:

What platform are you on? What version of Git are you running? What is the output of "git version --build-options"?

What is the exit status from these "git status" invocations that didn't write output? What options are you passing to "git status"? Are there any other interesting symptoms?

Is this part of a larger tool or script? Are there other operations going on (e.g. something sending signals to these git processes)?

Does the repository pass "git fsck"? Any other symptoms or hints that could help in tracking this down?

Can you paste a transcript of the commands or script you ran and what output it produced? Is this something I should be able to reproduce?

Thanks and hope that helps, Jonathan

Previous: Jonathan NiederNext: Alexander Mills
Message 5 of 11 in “concurrent access to multiple local git repos is error prone”
  1. Alexander MillsAug 4, 2018
  2. Alexander MillsAug 4, 2018
  3. Jonathan NiederAug 5, 2018
  4. Jonathan NiederAug 5, 2018
  5. Jonathan NiederAug 5, 2018
  6. Alexander MillsAug 5, 2018
  7. exit code in git diff-index [was: Re: concurrent access to multiple local git repos is error prone]Thomas Gummerer, Aug 5, 2018
  8. Alexander MillsAug 6, 2018
  9. Alexander MillsAug 6, 2018
  10. Jonathan NiederAug 6, 2018
  11. Duy NguyenAug 6, 2018

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.