extract /build in vserver with git clone so an incremenatal build can then git pull
[build.git] / vbuild-nightly.sh
index 815bf35..3fedba7 100755 (executable)
@@ -627,7 +627,7 @@ function main () {
            # Extract build again - in the vserver
            [ -n "$SSH_KEY" ] && setupssh ${BASE} ${SSH_KEY}
            if echo $BUILD_SCM_URL | grep -q git ; then
-               vserver $BASE exec bash -c "mkdir /build ; git archive --remote=$GIT_REPO $GIT_TAG | tar -C /build -xf -"
+               vserver $BASE exec bash -c "git clone $GIT_REPO /build; cd /build; git checkout $GIT_TAG"
            else
                vserver $BASE exec svn checkout ${BUILD_SCM_URL} /build
            fi