Merge branch 'sb/clone-shallow-passthru'
authorJunio C Hamano <gitster@pobox.com>
Fri, 6 May 2016 21:45:43 +0000 (14:45 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 May 2016 21:45:43 +0000 (14:45 -0700)
"git clone" learned "--shallow-submodules" option.

* sb/clone-shallow-passthru:
clone: add `--shallow-submodules` flag

1  2 
Documentation/git-clone.txt
builtin/clone.c
index 45d74be29705bae9ecd3028f4dff5755638741f7,e1a21b7de176bf7782ee5b3c7346f5a232f2b211..1b15cd7b16620e588d21e1c69a01e2e5d880729e
@@@ -189,9 -190,11 +189,11 @@@ objects from the source repository int
  
  --depth <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,
diff --cc builtin/clone.c
Simple merge