]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
build: git clone fails with commit hashes
authorMarek Vavruša <marek.vavrusa@nic.cz>
Fri, 22 May 2015 13:59:23 +0000 (15:59 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Fri, 22 May 2015 13:59:23 +0000 (15:59 +0200)
scripts/bootstrap-depends.sh

index d0a8fc7259a1424ec4a610d56a181abf7ea69c39..84bf936bad98e8c15ea3a5a0e2ea8d776f12d306 100755 (executable)
@@ -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##*.}