Skip to content

Commit be94ecb

Browse files
paulpschacon
authored andcommitted
git submodule syntax correction
Signed-off-by: Scott Chacon <schacon@gmail.com>
1 parent ef4d0e5 commit be94ecb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/34_Git_Submodules/1_Submodules.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Now create the superproject and add all the submodules:
6363
$ git init
6464
$ for i in a b c d
6565
do
66-
git submodule add ~/git/$i
66+
git submodule add ~/git/$i $i
6767
done
6868

6969
NOTE: Do not use local URLs here if you plan to publish your superproject!
@@ -105,7 +105,7 @@ The submodule directories are there, but they're empty:
105105

106106
NOTE: The commit object names shown above would be different for you, but they
107107
should match the HEAD commit object names of your repositories. You can check
108-
it by running `git ls-remote ../a`.
108+
it by running `git ls-remote ../git/a`.
109109

110110
Pulling down the submodules is a two-step process. First run `git submodule
111111
init` to add the submodule repository URLs to `.git/config`:

0 commit comments

Comments
 (0)