File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,27 @@ git add .gitmodules
82
82
git commit -m ' shallow'
83
83
cd ..
84
84
85
- git clone --depth 1 -- recursive " file://$( pwd) /top" top-clone
85
+ git clone --recursive " file://$( pwd) /top" top-clone
86
86
git --git-dir top-clone/.git/modules/mod log
87
87
# two commits
88
88
89
- git clone --depth 1 -- recursive " file://$( pwd) /top-shallow" top-shallow-clone
89
+ git clone --recursive " file://$( pwd) /top-shallow" top-shallow-clone
90
90
git --git-dir top-shallow-clone/.git/modules/mod log
91
91
# one commit
92
92
93
- git clone --depth 1 -- recursive " file://$( pwd) /top-branch" top-branch-clone
93
+ git clone --recursive " file://$( pwd) /top-branch" top-branch-clone
94
94
git --git-dir top-branch-clone/.git/modules/mod log
95
95
# two commits
96
96
97
- git clone --depth 1 -- recursive " file://$( pwd) /top-branch-shallow" top-branch-shallow-clone
97
+ git clone --recursive " file://$( pwd) /top-branch-shallow" top-branch-shallow-clone
98
98
git --git-dir top-branch-shallow-clone/.git/modules/mod log
99
99
# locally: one commit
100
100
# github 2017-11, git 2.14.1: two commits
101
+
102
+ git clone --depth 1 " file://$( pwd) /mod" mod-clone
103
+ git --git-dir mod-clone/.git log
104
+ # one commit
105
+
106
+ git clone --depth 1 " file://$( pwd) /mod-branch" mod-branch-clone
107
+ git --git-dir mod-branch-clone/.git log
108
+ # one commit
You can’t perform that action at this time.
0 commit comments