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

Re: [PATCH v5] submodule: fetch missing objects from default remote

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 3, 2026, 21:26 UTC
Message-ID
<xmqqms0obo5s.fsf@gitster.g>
In-Reply-To
<2e62dc94-b821-4815-8dd2-f806580d2027@ramsayjones.plus.com>
Ramsay Jones <ramsay@ramsayjones.plus.com> writes:
Show 27 quoted lines
>   + diff -u expect_fetch_custom actual_fetch_warnings_removed
>   --- expect_fetch_custom 2026-03-03 20:35:13.949600802 +0000
>   +++ actual_fetch_warnings_removed       2026-03-03 20:35:14.150601532 +0000
>   @@ -4,9 +4,9 @@
>    Fetching submodule sub1/subdir/deepsubmodule
>    Fetching submodule submodule
>    Fetching submodule submodule/subdir/deepsubmodule
>   -From /home/ramsay/git/t/trash directory.t5526-fetch-submodules.stress-5/./sub1
>   - * branch            43c17d99ab9d4fcabf7107e36660b27113b54663 -> FETCH_HEAD
>   -Fetching submodule sub1/subdir/deepsubmodule
>    From /home/ramsay/git/t/trash directory.t5526-fetch-submodules.stress-5/submodule
>     * branch            e38933e027ee8a2000f603124aa899302a09a51f -> FETCH_HEAD
>    Fetching submodule submodule/subdir/deepsubmodule
>   +From /home/ramsay/git/t/trash directory.t5526-fetch-submodules.stress-5/./sub1
>   + * branch            43c17d99ab9d4fcabf7107e36660b27113b54663 -> FETCH_HEAD
>   +Fetching submodule sub1/subdir/deepsubmodule
>   error: last command exited with $?=1
>   not ok 44 - fetch new submodule commits on-demand outside standard refspec with custom remote name
>
>   ...
>
>   $ 
>
> From which I guess that the order of the output is somewhat unpredictable.
>
> Also, other test files in that patch didn't fail for me with 'make test', but it
> could be possible that they are also flaky. I didn't look.

Ah, looks like the command tries to fetch from multiple places in parallel and it is up to the luck which one reports its result first? We probably do not want such a "human readable progress output should look exactly like this" test.

Thanks for reporting.
Previous: Ramsay JonesNext: Nasser Grainawi
Message 33 of 36 in “Fetch missing submodule objects from default remote”
  1. Fetch missing submodule objects from default remoteNasser Grainawi, Jan 12, 2026
  2. Jacob KellerJan 13, 2026
  3. Ben KnobleJan 13, 2026
  4. Nasser GrainawiJan 13, 2026
  5. D. Ben KnobleJan 14, 2026
  6. Junio C HamanoJan 14, 2026
  7. Ben KnobleJan 14, 2026
  8. Junio C HamanoJan 14, 2026
  9. Nasser GrainawiJan 14, 2026
  10. submodule: fetch missing objects from default remoteNasser Grainawi, Jan 14, 2026
  11. Nasser GrainawiJan 21, 2026
  12. submodule: fetch missing objects from default remoteNasser Grainawi, Jan 22, 2026
  13. Junio C HamanoJan 22, 2026
  14. Jacob KellerJan 22, 2026
  15. Junio C HamanoJan 22, 2026
  16. Junio C HamanoFeb 25, 2026
  17. Jacob KellerMar 2, 2026
  18. Nasser GrainawiFeb 27, 2026
  19. Junio C HamanoJan 22, 2026
  20. Junio C HamanoJan 23, 2026
  21. Junio C HamanoJan 24, 2026
  22. Junio C HamanoFeb 20, 2026
  23. Nasser GrainawiFeb 27, 2026
  24. submodule: fetch missing objects from default remoteNasser Grainawi, Mar 1, 2026
  25. Jacob KellerMar 2, 2026
  26. Junio C HamanoMar 2, 2026
  27. Junio C HamanoMar 3, 2026
  28. Nasser GrainawiMar 3, 2026
  29. Nasser GrainawiMar 3, 2026
  30. Junio C HamanoMar 3, 2026
  31. submodule: fetch missing objects from default remoteNasser Grainawi, Mar 3, 2026
  32. Ramsay JonesMar 3, 2026
  33. Junio C HamanoMar 3, 2026
  34. Nasser GrainawiMar 3, 2026
  35. submodule: fetch missing objects from default remoteNasser Grainawi, Mar 3, 2026
  36. Junio C HamanoMar 9, 2026

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.