All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] submodule-config: fix reading submodule.fetchJobs
@ 2026-05-03 10:14 Saagar Jha via GitGitGadget
  2026-05-03 11:07 ` Pablo
  2026-05-03 11:57 ` [PATCH v2] " Saagar Jha via GitGitGadget
  0 siblings, 2 replies; 9+ messages in thread
From: Saagar Jha via GitGitGadget @ 2026-05-03 10:14 UTC (permalink / raw)
  To: git; +Cc: Saagar Jha, Saagar Jha

From: Saagar Jha <saagar@saagarjha.com>

Signed-off-by: Saagar Jha <saagar@saagarjha.com>
---
    submodule-config: fix reading submodule.fetchJobs

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2287%2Fsaagarjha%2Fmaint-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2287/saagarjha/maint-v1
Pull-Request: https://github.com/git/git/pull/2287

 submodule-config.c          |  2 +-
 t/t7406-submodule-update.sh | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/submodule-config.c b/submodule-config.c
index 1f19fe2077..57b190678e 100644
--- a/submodule-config.c
+++ b/submodule-config.c
@@ -1037,5 +1037,5 @@ static int gitmodules_update_clone_config(const char *var, const char *value,
 
 void update_clone_config_from_gitmodules(int *max_jobs)
 {
-	config_from_gitmodules(gitmodules_update_clone_config, the_repository, &max_jobs);
+	config_from_gitmodules(gitmodules_update_clone_config, the_repository, max_jobs);
 }
diff --git a/t/t7406-submodule-update.sh b/t/t7406-submodule-update.sh
index 3adab12091..234a021fb3 100755
--- a/t/t7406-submodule-update.sh
+++ b/t/t7406-submodule-update.sh
@@ -1055,6 +1055,16 @@ test_expect_success 'submodule update can be run in parallel' '
 	)
 '
 
+test_expect_success 'submodule update honors fetch jobs config from .gitmodules' '
+	test_when_finished "rm -rf super3" &&
+	git clone cloned super3 &&
+	(cd super3 &&
+	 git config -f .gitmodules submodule.fetchJobs 67 &&
+	 GIT_TRACE="$(pwd)/trace.out" git submodule update --init &&
+	 grep "67 tasks" trace.out
+	)
+'
+
 test_expect_success 'git clone passes the parallel jobs config on to submodules' '
 	test_when_finished "rm -rf super4" &&
 	GIT_TRACE=$(pwd)/trace.out git clone --recurse-submodules --jobs 7 . super4 &&

base-commit: 67ad42147a7acc2af6074753ebd03d904476118f
-- 
gitgitgadget

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-05-10  3:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-03 10:14 [PATCH] submodule-config: fix reading submodule.fetchJobs Saagar Jha via GitGitGadget
2026-05-03 11:07 ` Pablo
2026-05-03 11:24   ` Saagar Jha
2026-05-03 12:19     ` Pablo
2026-05-03 11:57 ` [PATCH v2] " Saagar Jha via GitGitGadget
2026-05-03 13:07   ` Pablo
2026-05-10  0:01     ` Junio C Hamano
2026-05-03 13:52   ` [PATCH v3] " Saagar Jha via GitGitGadget
2026-05-10  3:50     ` [PATCH v4] " Saagar Jha via GitGitGadget

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.