* [PATCH] fixup! fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatal
@ 2026-07-11 13:22 Ramsay Jones
2026-07-11 20:55 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Ramsay Jones @ 2026-07-11 13:22 UTC (permalink / raw)
To: Junio C Hamano; +Cc: GIT Mailing-list
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(-)
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fixup! fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatal
2026-07-11 13:22 [PATCH] fixup! fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatal Ramsay Jones
@ 2026-07-11 20:55 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2026-07-11 20:55 UTC (permalink / raw)
To: Ramsay Jones; +Cc: GIT Mailing-list
Ramsay Jones <ramsay@ramsayjones.plus.com> writes:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-11 20:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-11 13:22 [PATCH] fixup! fetch: add fetch.submoduleErrors to make submodule fetch errors non-fatal Ramsay Jones
2026-07-11 20:55 ` Junio C Hamano
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.