summaryrefslogtreecommitdiff
path: root/t/t5617-clone-submodules-remote.sh
AgeCommit message (Collapse)AuthorFilesLines
2019-05-28clone: add `--remote-submodules` flagLibravatar Ben Avison1-0/+54
When using `git clone --recurse-submodules` there was previously no way to pass a `--remote` switch to the implicit `git submodule update` command for any use case where you want the submodules to be checked out on their remote-tracking branch rather than with the SHA-1 recorded in the superproject. This patch rectifies this situation. It actually passes `--no-fetch` to `git submodule update` as well on the grounds they the submodule has only just been cloned, so fetching from the remote again only serves to slow things down. Signed-off-by: Ben Avison <bavison@riscosopen.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>