From: Junio C Hamano Date: Fri, 6 May 2016 21:45:43 +0000 (-0700) Subject: Merge branch 'sb/clone-shallow-passthru' X-Git-Tag: v2.9.0-rc0~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f3b21c1119abc7e19c988b399c7726d47bbb0d1;p=git Merge branch 'sb/clone-shallow-passthru' "git clone" learned "--shallow-submodules" option. * sb/clone-shallow-passthru: clone: add `--shallow-submodules` flag --- 5f3b21c1119abc7e19c988b399c7726d47bbb0d1 diff --cc Documentation/git-clone.txt index 45d74be297,e1a21b7de1..1b15cd7b16 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@@ -189,9 -190,11 +189,11 @@@ objects from the source repository int --depth :: Create a 'shallow' clone with a history truncated to the - specified number of revisions. Implies `--single-branch` unless + specified number of commits. Implies `--single-branch` unless `--no-single-branch` is given to fetch the histories near the - tips of all branches. + tips of all branches. This implies `--shallow-submodules`. If + you want to have a shallow superproject clone, but full submodules, + also pass `--no-shallow-submodules`. --[no-]single-branch:: Clone only the history leading to the tip of a single branch,