Skip to content

Commit d09bc51

Browse files
Damien Robertgitster
authored andcommitted
doc: explain how to deactivate submodule.recurse completely
Signed-off-by: Damien Robert <damien.olivier.robert+git@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent b3cec57 commit d09bc51

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/config/submodule.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ submodule.recurse::
6363
(`checkout`, `fetch`, `grep`, `pull`, `push`, `read-tree`, `reset`,
6464
`restore` and `switch`) except `clone` and `ls-files`.
6565
Defaults to false.
66+
When set to true, it can be deactivated via the
67+
`--no-recurse-submodules` option. Note that some Git commands
68+
lacking this option may call some of the above commands affected by
69+
`submodule.recurse`; for instance `git remote update` will call
70+
`git fetch` but does not have a `--no-recurse-submodules` option.
71+
For these commands a workaround is to temporarily change the
72+
configuration value by using `git -c submodule.recurse=0`.
6673

6774
submodule.fetchJobs::
6875
Specifies how many submodules are fetched/cloned at the same time.

0 commit comments

Comments
 (0)