From: Silvio Rhatto Date: Fri, 15 Feb 2013 19:27:36 +0000 (-0200) Subject: Using file://// for git clone otherwise --depth might not work X-Git-Tag: 0.1~30 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6397a9be1c703fe032c1cefaeb51ab5659e2178b;p=hydra.git Using file://// for git clone otherwise --depth might not work --- diff --git a/share/hydra/bootless b/share/hydra/bootless index 65ff1e7..75d4a66 100755 --- a/share/hydra/bootless +++ b/share/hydra/bootless @@ -109,7 +109,7 @@ EOF if [ "$rsync" == "true" ]; then $sudo rsync -Cav ${BOOTLESS_DIR}/ ${tmpdir}/boot/ else - $sudo git clone --depth=1 ${BOOTLESS_DIR} ${tmpdir}/boot + $sudo git clone --depth=1 file:///${BOOTLESS_DIR} ${tmpdir}/boot if [ $? != 0 ]; then echo "Error: failed to clone repository \"${BOOTLESS_DIR}\" in \"${tmpdir}\" (errno: $?)." exit 1