Skip to content

Commit 237a39d

Browse files
Reference the different possible values for push.recurseSubmodles
explicitly in each of their relevant sections
1 parent 760e95b commit 237a39d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/07-git-tools/sections/submodules.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ to push them to a remote.
518518

519519
As you can see, it also gives us some helpful advice on what we might want to do next.
520520
The simple option is to go into each submodule and manually push to the remotes to make sure they're externally available and then try this push again.
521+
If you want the check behavior to happen for all pushes, you can make this behavior the default by doing `git config push.recurseSubmodules check`.
521522

522523
The other option is to use the ``on-demand'' value, which will try to do this for you.
523524

@@ -543,8 +544,7 @@ To https://github.com/chaconinc/MainProject
543544

544545
As you can see there, Git went into the DbConnector module and pushed it before pushing the main project.
545546
If that submodule push fails for some reason, the main project push will also fail.
546-
547-
You can enable these behaviors for all future pushes with the `push.recurseSubmodules` config.
547+
You can make this behavior the default by doing `git config push.recurseSubmodules on-demand`.
548548

549549
===== Merging Submodule Changes
550550

0 commit comments

Comments
 (0)