Skip to content

Conversation

@rdw-software
Copy link
Member

@rdw-software rdw-software commented Oct 1, 2025

This should speed up recursive clones, at the cost of losing history/tags (disabled for snapshots).

@rdw-software rdw-software changed the title Add fetchJobs=0 as a default for all submodules Set fetchJobs=0 as a default for all submodules Oct 1, 2025
@rdw-software rdw-software force-pushed the gitmodules-parallel-fetchjobs branch from 4a58f3a to d9a2144 Compare October 1, 2025 16:55
If I understand correctly, the default is unset = single-threaded. That would make things unnecessarily slow?

---

> Specifies how many submodules are fetched/cloned at the same time. A positive integer allows up to that number of submodules fetched in parallel. A value of 0 will give some reasonable default. If unset, it defaults to 1.

Source: https://git-scm.com/docs/git-config#Documentation/git-config.txt-submodulefetchJobs
This should also speed up recursive clones, at the cost of losing history/tags (disabled for snapshots).
@rdw-software rdw-software force-pushed the gitmodules-parallel-fetchjobs branch from d9a2144 to 9c2ec5b Compare October 1, 2025 17:35
@rdw-software rdw-software changed the title Set fetchJobs=0 as a default for all submodules Speed up recursive clones for all submodules Oct 1, 2025
@rdw-software rdw-software force-pushed the gitmodules-parallel-fetchjobs branch from 9c2ec5b to 244be41 Compare October 1, 2025 17:40
@rdw-software rdw-software force-pushed the gitmodules-parallel-fetchjobs branch from 244be41 to 8850ef1 Compare October 1, 2025 17:42
@rdw-software
Copy link
Member Author

Doesn't actually work like you'd expect, for some reason the setting is only read from the git config.

@rdw-software rdw-software deleted the gitmodules-parallel-fetchjobs branch January 3, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants