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

Re: Concurrent fetch commands

From
SHStefan Haller <lists@haller-berlin.de>
Date
Jan 1, 2024, 11:42 UTC
Message-ID
<08e4527f-3e1d-488c-8857-a40b65a71a3c@haller-berlin.de>
In-Reply-To
<9b5ff583-f8b9-42dd-8829-2fea74bc2057@haller-berlin.de>
On 01.01.24 12:30, Stefan Haller wrote:
> But it does sound like --no-write-fetch-head will solve our problem,
> thanks!

Actually we saw another problem recently that I suspect might also be caused by the concurrency between fetch and pull, but I'm not sure. I'll explain it here in case anybody has any idea.

What happened was that a user tried to pull a branch that was behind its upstream (not diverged). They got the error message from show_advice_pull_non_ff ("Need to specify how to reconcile divergent branches"); the log then showed that the background fetch was ongoing for the remote of the current branch while they initiated the pull.

Trying to pull again after the background fetch had moved on to the next remote then worked.

I read the code in pull.c a bit, but I can't see how it can become so confused about being diverged in this scenario. Any ideas?

-Stefan
Previous: Stefan HallerNext: Patrick Steinhardt
Message 10 of 20 in “Concurrent fetch commands”
  1. Stefan HallerDec 31, 2023
  2. Dragan SimicDec 31, 2023
  3. Konstantin TokarevDec 31, 2023
  4. Dragan SimicDec 31, 2023
  5. Stefan HallerJan 1, 2024
  6. Federico KircheisJan 1, 2024
  7. Junio C HamanoDec 31, 2023
  8. Dragan SimicDec 31, 2023
  9. Stefan HallerJan 1, 2024
  10. Stefan HallerJan 1, 2024
  11. Patrick SteinhardtJan 3, 2024
  12. Patrick SteinhardtJan 3, 2024
  13. Patrick SteinhardtJan 3, 2024
  14. Taylor BlauJan 3, 2024
  15. Junio C HamanoJan 3, 2024
  16. Stefan HallerJan 4, 2024
  17. Mike HommeyJan 4, 2024
  18. Junio C HamanoJan 4, 2024
  19. Mike HommeyJan 4, 2024
  20. Taylor BlauJan 4, 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.