]> git.ipfire.org Git - thirdparty/git.git/commit - Documentation/git-submodule.txt
clone: pass --single-branch during --recurse-submodules
authorEmily Shaffer <emilyshaffer@google.com>
Fri, 21 Feb 2020 03:10:27 +0000 (19:10 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Feb 2020 18:00:38 +0000 (10:00 -0800)
commit132f600b060c2db7fd3d450dfadb6779a61c648a
tree1d2b33a3a96e98c15def1cb530092dfe94b89540
parent47319576f112b60ecd85930d162cd7656132fd0d
clone: pass --single-branch during --recurse-submodules

Previously, performing "git clone --recurse-submodules --single-branch"
resulted in submodules cloning all branches even though the superproject
cloned only one branch. Pipe --single-branch through the submodule
helper framework to make it to 'clone' later on.

Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-submodule.txt
builtin/clone.c
builtin/submodule--helper.c
git-submodule.sh
t/t5617-clone-submodules-remote.sh