summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-02-12 12:41:37 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-02-12 12:41:37 -0800
commitb2099ebb123af2b299c8125b7a839df44faec68a (patch)
treeb7da40fc6c73b278d5c57b4f700811b9f61dae6c
parentMerge branch 'jc/skip-prefix' (diff)
parentsubmodule foreach: replace $path with $sm_path in example (diff)
downloadtgif-b2099ebb123af2b299c8125b7a839df44faec68a.tar.xz
Merge branch 'km/submodule-doc-use-sm-path'
Docfix. * km/submodule-doc-use-sm-path: submodule foreach: replace $path with $sm_path in example
-rw-r--r--Documentation/git-submodule.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt
index 5232407f68..218942acd1 100644
--- a/Documentation/git-submodule.txt
+++ b/Documentation/git-submodule.txt
@@ -229,7 +229,7 @@ As an example, the command below will show the path and currently
checked out commit for each submodule:
+
--------------
-git submodule foreach 'echo $path `git rev-parse HEAD`'
+git submodule foreach 'echo $sm_path `git rev-parse HEAD`'
--------------
sync [--recursive] [--] [<path>...]::