summaryrefslogtreecommitdiffstats
path: root/git-push.txt
diff options
context:
space:
mode:
Diffstat (limited to 'git-push.txt')
-rw-r--r--git-push.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/git-push.txt b/git-push.txt
index def7657ef..5bb1d5aae 100644
--- a/git-push.txt
+++ b/git-push.txt
@@ -409,10 +409,14 @@ Specifying `--no-force-if-includes` disables this behavior.
all submodules that changed in the revisions to be pushed will be
pushed. If on-demand was not able to push all necessary revisions it will
also be aborted and exit with non-zero status. If 'only' is used all
- submodules will be recursively pushed while the superproject is left
+ submodules will be pushed while the superproject is left
unpushed. A value of 'no' or using `--no-recurse-submodules` can be used
to override the push.recurseSubmodules configuration variable when no
submodule recursion is required.
++
+When using 'on-demand' or 'only', if a submodule has a
+"push.recurseSubmodules={on-demand,only}" or "submodule.recurse" configuration,
+further recursion will occur. In this case, "only" is treated as "on-demand".
--[no-]verify::
Toggle the pre-push hook (see linkgit:githooks[5]). The