3 BUILD_SCM_URL="git://git.onelab.eu/build"
5 # scan args for any -s option, and set BUILD_SCM_URL in this case
6 function scan_build_scm_url () {
7 while [[ -n "$@" ]] ; do
8 if [ "$1" == "-s" ] ; then
14 GIT_REPO=$(echo $BUILD_SCM_URL | cut -d@ -f1)
15 GIT_TAG=$(echo $BUILD_SCM_URL | cut -s -d@ -f2)
16 GIT_TAG=${GIT_TAG:-master}
19 scan_build_scm_url "$@"
24 git archive --remote=$GIT_REPO $GIT_TAG $COMMAND | tar -C $tmpd -xf -