extract /build in vserver with git clone so an incremenatal build can then git pull
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sun, 23 May 2010 14:54:31 +0000 (16:54 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sun, 23 May 2010 14:54:31 +0000 (16:54 +0200)
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