diff --git a/.travis/push.sh b/.travis/push.sh index aa32dc59b..ff6cd7023 100755 --- a/.travis/push.sh +++ b/.travis/push.sh @@ -1,10 +1,10 @@ #!/bin/sh +if [ "$TRAVIS_OS_NAME" != "linux" ]; then exit; fi if [ "${UPDATE_REPO}" != "yes" ]; then exit; fi git config --global user.email "flukiluke@gmail.com" git config --global user.name "Autobuild process" -git clone --depth=1 https://${GH_TOKEN}@github.com/Galleondragon/qb64.git homeqb64 +git clone --depth=1 --branch=$TRAVIS_BRANCH https://${GH_TOKEN}@github.com/Galleondragon/qb64.git homeqb64 cd homeqb64 -git checkout $TRAVIS_BRANCH rm -r internal/source cp -r ../internal/source internal/source git add --all internal/source