Skip to content
Snippets Groups Projects
Commit c3c0003b authored by Marek Vavruša's avatar Marek Vavruša
Browse files

build: git clone fails with commit hashes

parent c6d097a2
Branches
Tags
No related merge requests found
......@@ -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##*.}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment