libnetwork.lib: add --recursive to git clone commands to correctly fetch repositories with external subtrees
This commit is contained in:
parent
f4e08f4edc
commit
93bcf6bb6b
@ -1017,11 +1017,11 @@ not the expected package version"" (${NOTE}${today}git${NORM})..."
|
|||||||
"${NOTE}"$"cloning git repository""\
|
"${NOTE}"$"cloning git repository""\
|
||||||
<$git_repository> ${git_branch:+($git_branch)}${NORM}""..."
|
<$git_repository> ${git_branch:+($git_branch)}${NORM}""..."
|
||||||
if [ "$preserve_dot_git" = "0" -a "${git_repository:0:4}" != "http" ]; then
|
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\""
|
notify.debug "$FUNCNAME: git clone --recursive --depth=1 ${git_branch:+-b $git_branch} \"$git_repository\""
|
||||||
git clone --depth=1 ${git_branch:+-b $git_branch} "$git_repository"
|
git clone --recursive --depth=1 ${git_branch:+-b $git_branch} "$git_repository"
|
||||||
else
|
else
|
||||||
notify.debug "$FUNCNAME: git clone ${git_branch:+-b $git_branch} \"$git_repository\""
|
notify.debug "$FUNCNAME: git clone --recursive ${git_branch:+-b $git_branch} \"$git_repository\""
|
||||||
git clone ${git_branch:+-b $git_branch} "$git_repository"
|
git clone --recursive ${git_branch:+-b $git_branch} "$git_repository"
|
||||||
fi
|
fi
|
||||||
[ $? -eq 0 ] ||
|
[ $? -eq 0 ] ||
|
||||||
{ popd &>/dev/null
|
{ popd &>/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user