Skip to content

Commit

Permalink
Fixes to setup.sh
Browse files Browse the repository at this point in the history
 * Don't fail if branch name doesn't exist.
 * Make sure we create the branch at the commit travis is testing.
  • Loading branch information
mithro committed Dec 23, 2016
1 parent 80b871e commit 840e634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis/setup.sh
Expand Up @@ -12,8 +12,8 @@ git fetch --unshallow && git fetch --tags
if [ z"$TRAVIS_BRANCH" != z ]; then
echo "Fixing detached head"
git branch -v
git branch -D $TRAVIS_BRANCH
git checkout -b $TRAVIS_BRANCH
git branch -D $TRAVIS_BRANCH || true
git checkout $TRAVIS_COMMIT -b $TRAVIS_BRANCH
git branch -v
fi
GIT_REVISION=`git describe`
Expand Down

0 comments on commit 840e634

Please sign in to comment.