From 93bcf6bb6b27f57d9a61ab0a04af91a6869c1000 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 31 Oct 2017 16:57:10 +0100 Subject: [PATCH] libnetwork.lib: add --recursive to git clone commands to correctly fetch repositories with external subtrees --- lib/libnetwork.lib.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libnetwork.lib.in b/lib/libnetwork.lib.in index 5367cad..f1794f9 100644 --- a/lib/libnetwork.lib.in +++ b/lib/libnetwork.lib.in @@ -1017,11 +1017,11 @@ not the expected package version"" (${NOTE}${today}git${NORM})..." "${NOTE}"$"cloning git repository""\ <$git_repository> ${git_branch:+($git_branch)}${NORM}""..." if [ "$preserve_dot_git" = "0" -a "${git_repository:0:4}" != "http" ]; then - notify.debug "$FUNCNAME: git clone --depth=1 ${git_branch:+-b $git_branch} \"$git_repository\"" - git clone --depth=1 ${git_branch:+-b $git_branch} "$git_repository" + notify.debug "$FUNCNAME: git clone --recursive --depth=1 ${git_branch:+-b $git_branch} \"$git_repository\"" + git clone --recursive --depth=1 ${git_branch:+-b $git_branch} "$git_repository" else - notify.debug "$FUNCNAME: git clone ${git_branch:+-b $git_branch} \"$git_repository\"" - git clone ${git_branch:+-b $git_branch} "$git_repository" + notify.debug "$FUNCNAME: git clone --recursive ${git_branch:+-b $git_branch} \"$git_repository\"" + git clone --recursive ${git_branch:+-b $git_branch} "$git_repository" fi [ $? -eq 0 ] || { popd &>/dev/null