diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-03-30 16:00:21 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-30 16:00:21 -0700 |
commit | dc8d0c30582dfb0c734e0999ffbb301067de92ef (patch) | |
tree | cf4262bb682df7b39006e1f33554dd9804623144 /git-clone.txt | |
parent | 2affb96f40129de19a00a0ff8b22e31a47499c42 (diff) | |
download | git-htmldocs-dc8d0c30582dfb0c734e0999ffbb301067de92ef.tar.gz |
Autogenerated HTML docs for v2.12.2-575-gb14f2
Diffstat (limited to 'git-clone.txt')
-rw-r--r-- | git-clone.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/git-clone.txt b/git-clone.txt index 35cc34b2f..30052cce4 100644 --- a/git-clone.txt +++ b/git-clone.txt @@ -14,7 +14,7 @@ SYNOPSIS [-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>] [--dissociate] [--separate-git-dir <git dir>] [--depth <depth>] [--[no-]single-branch] - [--recursive | --recurse-submodules] [--[no-]shallow-submodules] + [--recurse-submodules] [--[no-]shallow-submodules] [--jobs <n>] [--] <repository> [<directory>] DESCRIPTION @@ -215,10 +215,14 @@ objects from the source repository into a pack in the cloned repository. branch when `--single-branch` clone was made, no remote-tracking branch is created. ---recursive:: ---recurse-submodules:: - After the clone is created, initialize all submodules within, - using their default settings. This is equivalent to running +--recurse-submodules[=<pathspec]:: + After the clone is created, initialize and clone submodules + within based on the provided pathspec. If no pathspec is + provided, all submodules are initialized and cloned. + Submodules are initialized and cloned using their default + settings. The resulting clone has `submodule.active` set to + the provided pathspec, or "." (meaning all submodules) if no + pathspec is provided. This is equivalent to running `git submodule update --init --recursive` immediately after the clone is finished. This option is ignored if the cloned repository does not have a worktree/checkout (i.e. if any of |