Commit 93bcf6bb6b27f57d9a61ab0a04af91a6869c1000

Authored by Silvan Calarco
1 parent f4e08f4edc
Exists in master

libnetwork.lib: add --recursive to git clone commands to correctly fetch reposit…

…ories with external subtrees

Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff

lib/libnetwork.lib.in
... ... @@ -1017,11 +1017,11 @@
1017 1017 "${NOTE}"$"cloning git repository""\
1018 1018 <$git_repository> ${git_branch:+($git_branch)}${NORM}""..."
1019 1019 if [ "$preserve_dot_git" = "0" -a "${git_repository:0:4}" != "http" ]; then
1020   - notify.debug "$FUNCNAME: git clone --depth=1 ${git_branch:+-b $git_branch} \"$git_repository\""
1021   - git clone --depth=1 ${git_branch:+-b $git_branch} "$git_repository"
  1020 + notify.debug "$FUNCNAME: git clone --recursive --depth=1 ${git_branch:+-b $git_branch} \"$git_repository\""
  1021 + git clone --recursive --depth=1 ${git_branch:+-b $git_branch} "$git_repository"
1022 1022 else
1023   - notify.debug "$FUNCNAME: git clone ${git_branch:+-b $git_branch} \"$git_repository\""
1024   - git clone ${git_branch:+-b $git_branch} "$git_repository"
  1023 + notify.debug "$FUNCNAME: git clone --recursive ${git_branch:+-b $git_branch} \"$git_repository\""
  1024 + git clone --recursive ${git_branch:+-b $git_branch} "$git_repository"
1025 1025 fi
1026 1026 [ $? -eq 0 ] ||
1027 1027 { popd &>/dev/null