path: root/Documentation/git-submodule.txt
diff options
authorPhilippe Blain <>2019-11-24 02:01:35 (GMT)
committerJunio C Hamano <>2019-11-24 06:03:18 (GMT)
commitf0e58b3fe85970cfac20cd10545dd91a65094887 (patch)
tree68e546a09b81401067020008063a770f21400d1e /Documentation/git-submodule.txt
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9 (diff)
doc: mention that 'git submodule update' fetches missing commits
'git submodule update' will fetch new commits from the submodule remote if the SHA-1 recorded in the superproject is not found. This was not mentioned in the documentation. Helped-by: Junio C Hamano <> Helped-by: Johannes Schindelin <> Signed-off-by: Philippe Blain <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-submodule.txt')
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt
index 0ed5c24..4beb569 100644
--- a/Documentation/git-submodule.txt
+++ b/Documentation/git-submodule.txt
@@ -133,7 +133,8 @@ update [--init] [--remote] [-N|--no-fetch] [--[no-]recommend-shallow] [-f|--forc
Update the registered submodules to match what the superproject
-expects by cloning missing submodules and updating the working tree of
+expects by cloning missing submodules, fetching missing commits
+in submodules and updating the working tree of
the submodules. The "updating" can be done in several ways depending
on command line options and the value of `submodule.<name>.update`
configuration variable. The command line option takes precedence over