From: Marek VavruĊĦa Date: Fri, 22 May 2015 13:59:23 +0000 (+0200) Subject: build: git clone fails with commit hashes X-Git-Tag: v1.0.0-beta1~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3c0003bc1c08ca68da044c66d82ea975551ab96;p=thirdparty%2Fknot-resolver.git build: git clone fails with commit hashes --- diff --git a/scripts/bootstrap-depends.sh b/scripts/bootstrap-depends.sh index d0a8fc725..84bf936ba 100755 --- a/scripts/bootstrap-depends.sh +++ b/scripts/bootstrap-depends.sh @@ -37,7 +37,8 @@ trap on_failure ERR function fetch_pkg { if [ "${2##*.}" == git ]; then - [ ! -e $1 ] && git clone -b $3 "$2" $1 &> /dev/null + [ ! -e $1 ] && git clone "$2" $1 &> /dev/null + cd $1; git checkout $3 &> /dev/null; cd - else [ ! -f $1.tar.${2##*.} ] && curl "$2" > $1.tar.${2##*.} tar xf $1.tar.${2##*.}