Volume XXII, number 279Tuesday, October 6, 2026Latest message 39 minutes ago

The Git List

News and archive of git@vger.kernel.org, since April 2005

patchfixup! fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatal

2 messages between Jul 11, 2026 and Jul 11, 2026, from Ramsay Jones, Junio C Hamano.

Plain Markdown or JSON for tools and agents. Diffs are folded; open one to read it.

Ramsay JonesJul 11, 2026, 13:22 UTC on lore
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
Hi Junio,

You have probably already noticed, but just in case, I had to fixup commit df9481e6d6 ("fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatal", 2026-07-10) in order to get a clean test-suite run on the 'seen' branch (@a77a48500d) this afternoon.

[this is part of the 'pz/fetch-submodule-errors-config' branch].
Thanks.

ATB, Ramsay Jones

 t/t5526-fetch-submodules.sh | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
Show changes to t/t5526-fetch-submodules.sh +9 −9
diff --git a/t/t5526-fetch-submodules.sh b/t/t5526-fetch-submodules.sh
index 7ccc80048b..4bb6d483be 100755
--- a/t/t5526-fetch-submodules.sh
+++ b/t/t5526-fetch-submodules.sh
@@ -1312,7 +1312,7 @@ test_expect_success 'fetch --recurse-submodules fails when submodule commit is u
 	create_err_env env_default &&
 	push_unreachable_commit env_default &&
 	test_must_fail git -C env_default/clone fetch --recurse-submodules 2>err &&
-	grep "Errors during submodule fetch" err
+	test_grep "Errors during submodule fetch" err
 '
 
 test_expect_success 'fetch.submoduleErrors=warn: unreachable submodule commit is non-fatal' '
@@ -1321,7 +1321,7 @@ test_expect_success 'fetch.submoduleErrors=warn: unreachable submodule commit is
 	push_unreachable_commit env_warn_cfg &&
 	git -C env_warn_cfg/clone -c fetch.submoduleErrors=warn \
 		fetch --recurse-submodules 2>err &&
-	grep "Errors during submodule fetch" err
+	test_grep "Errors during submodule fetch" err
 '
 
 test_expect_success '--submodule-errors=warn: unreachable submodule commit is non-fatal' '
@@ -1330,7 +1330,7 @@ test_expect_success '--submodule-errors=warn: unreachable submodule commit is no
 	push_unreachable_commit env_warn_cli &&
 	git -C env_warn_cli/clone fetch --recurse-submodules \
 		--submodule-errors=warn 2>err &&
-	grep "Errors during submodule fetch" err
+	test_grep "Errors during submodule fetch" err
 '
 
 test_expect_success '--submodule-errors=fail: unreachable submodule commit is fatal' '
@@ -1339,7 +1339,7 @@ test_expect_success '--submodule-errors=fail: unreachable submodule commit is fa
 	push_unreachable_commit env_fail_cli &&
 	test_must_fail git -C env_fail_cli/clone fetch --recurse-submodules \
 		--submodule-errors=fail 2>err &&
-	grep "Errors during submodule fetch" err
+	test_grep "Errors during submodule fetch" err
 '
 
 test_expect_success 'fetch.submoduleErrors=warn does not suppress successful fetch' '
@@ -1355,7 +1355,7 @@ test_expect_success 'fetch.submoduleErrors=warn does not suppress successful fet
 	git -C env_ok/super_work push &&
 	git -C env_ok/clone -c fetch.submoduleErrors=warn \
 		fetch --recurse-submodules 2>err &&
-	! grep "Errors during submodule fetch" err
+	test_grep ! "Errors during submodule fetch" err
 '
 
 test_expect_success 'failed submodule fetch is fatal even when its commits are present locally' '
@@ -1382,7 +1382,7 @@ test_expect_success 'failed submodule fetch is fatal even when its commits are p
 	git -C env_phase1/super_work push &&
 	git -C env_phase1/clone/sub remote set-url origin "$pwd/env_phase1/missing" &&
 	test_must_fail git -C env_phase1/clone fetch --recurse-submodules 2>err &&
-	grep "Errors during submodule fetch" err
+	test_grep "Errors during submodule fetch" err
 '
 
 test_expect_success '--submodule-errors=warn is honored by fetch --all' '
@@ -1395,7 +1395,7 @@ test_expect_success '--submodule-errors=warn is honored by fetch --all' '
 	git -C env_all/clone remote add second "$pwd/env_all/super_bare" &&
 	git -C env_all/clone fetch --all --recurse-submodules \
 		--submodule-errors=warn 2>err &&
-	grep "Errors during submodule fetch" err
+	test_grep "Errors during submodule fetch" err
 '
 
 test_expect_success 'fetch.submoduleErrors=warn: inaccessible submodule is non-fatal' '
@@ -1405,9 +1405,9 @@ test_expect_success 'fetch.submoduleErrors=warn: inaccessible submodule is non-f
 	rm -r env_access/clone/.git/modules/sub &&
 	git -C env_access/clone -c fetch.submoduleErrors=warn \
 		fetch --recurse-submodules 2>err &&
-	grep "Could not access submodule" err &&
+	test_grep "Could not access submodule" err &&
 	test_must_fail git -C env_access/clone fetch --recurse-submodules 2>err &&
-	grep "Could not access submodule" err
+	test_grep "Could not access submodule" err
 '
 
 test_done
-- 
2.55.0
Junio C HamanoJul 11, 2026, 20:55 UTC in reply to Ramsay Jones on lore

Re: [PATCH] fixup! fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatal

Ramsay Jones <ramsay@ramsayjones.plus.com> writes:
Show 10 quoted lines
> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
> ---
>
> Hi Junio,
>
> You have probably already noticed, but just in case, I had to fixup commit df9481e6d6
> ("fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatal", 2026-07-10)
> in order to get a clean test-suite run on the 'seen' branch (@a77a48500d) this afternoon.
>
> [this is part of the 'pz/fetch-submodule-errors-config' branch].

Thanks. I am being lazy and expecting the author to send in a fix before my next integration cycle ;-)

> -	grep "Errors during submodule fetch" err
> +	test_grep "Errors during submodule fetch" err

Back to recent threads