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

Re: [PATCH v3 2/2] fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatal

From
PZPaulius Zaleckas <paulius.zaleckas@gmail.com>
Date
Jul 14, 2026, 13:29 UTC
Message-ID
<20260714132939.3368732-1-paulius.zaleckas@gmail.com>
In-Reply-To
<xmqqmrvybi5t.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
> Don't we want to pass down not just
> --submodule-error=warn but --submodule-error=fail if that is what
> was given from the command line?  Or does it not matter because fail
> is the default?

Good catch, it does matter: the per-remote children of "fetch --all" re-read the repository configuration, so a configured warn silently won over an explicit --submodule-errors=fail.

Fixed in v4 by forwarding the resolved value whenever it was set explicitly, in either direction; when nothing is set, nothing is forwarded. Added a test.

Thanks.
Previous: Junio C HamanoNext: Paulius Zaleckas
Message 5 of 20 in “fetch: make submodule fetch errors configurable”
  1. 0/2 fetch: make submodule fetch errors configurablePaulius Zaleckas, Jul 10, 2026
  2. 1/2 submodule: fix premature failure in recursive submodule fetchPaulius Zaleckas, Jul 10, 2026
  3. 2/2 fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatalPaulius Zaleckas, Jul 10, 2026
  4. Junio C HamanoJul 10, 2026
  5. Paulius ZaleckasJul 14, 2026
  6. 0/2 fetch: make submodule fetch errors configurablePaulius Zaleckas, Jul 14, 2026
  7. 1/2 submodule: fix premature failure in recursive submodule fetchPaulius Zaleckas, Jul 14, 2026
  8. 2/2 fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatalPaulius Zaleckas, Jul 14, 2026
  9. Junio C HamanoJul 14, 2026
  10. Junio C HamanoJul 14, 2026
  11. 0/2 fetch: make submodule fetch errors configurablePaulius Zaleckas, Jul 15, 2026
  12. 1/2 submodule: fix premature failure in recursive submodule fetchPaulius Zaleckas, Jul 15, 2026
  13. 2/2 fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatalPaulius Zaleckas, Jul 15, 2026
  14. Junio C HamanoJul 15, 2026
  15. 0/2 fetch: make submodule fetch errors configurablePaulius Zaleckas, Jul 16, 2026
  16. 1/2 submodule: fix premature failure in recursive submodule fetchPaulius Zaleckas, Jul 16, 2026
  17. 2/2 fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatalPaulius Zaleckas, Jul 16, 2026
  18. Paulius ZaleckasAug 10, 2026
  19. Junio C HamanoAug 26, 2026
  20. Paulius ZaleckasSep 23, 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.