From d7efc3f9dc5d6e88dfadedc55bcb6ed01acbd550 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 28 Jul 2013 18:13:22 +0200 Subject: [PATCH] libnetwork.lib: never use '--depth=1' when cloning from http and https git urls - fix necessary and tested with code.google.com - additionally print full 'git clone ..' command line used in debug output --- lib/libnetwork.lib.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libnetwork.lib.in b/lib/libnetwork.lib.in index 7e81789..6a9f4b0 100644 --- a/lib/libnetwork.lib.in +++ b/lib/libnetwork.lib.in @@ -1015,9 +1015,11 @@ not the expected package version"" (${NOTE}${today}git${NORM})..." notify.note \ "${NOTE}"$"cloning git repository""\ <$git_repository> ${git_branch:+($git_branch)}${NORM}""..." - if [ "$preserve_dot_git" = "0" ]; 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\"" git clone --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" fi [ $? -eq 0 ] ||