Skip to content

Commit 04e5b3f

Browse files
kyleamgitster
authored andcommitted
submodule foreach: replace $path with $sm_path in example
f0fd0dc (submodule foreach: document '$sm_path' instead of '$path', 2018-05-08) updated the documentation to advise callers to favor $sm_path over the deprecated synonym $path. However, the example in that section still uses $path. Update it to use $sm_path. Signed-off-by: Kyle Meyer <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b6d4d82 commit 04e5b3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/git-submodule.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ As an example, the command below will show the path and currently
219219
checked out commit for each submodule:
220220
+
221221
--------------
222-
git submodule foreach 'echo $path `git rev-parse HEAD`'
222+
git submodule foreach 'echo $sm_path `git rev-parse HEAD`'
223223
--------------
224224

225225
sync [--recursive] [--] [<path>...]::

0 commit comments

Comments
 (0)