Permalink
Browse files

`git branch --list` doesn't work

  • Loading branch information...
ozh committed Oct 1, 2017
1 parent 029e84b commit 5a6ba185d8321601a5c5b2289fd02e0e87da9ff1
Showing with 1 addition and 2 deletions.
  1. +1 −2 .travis.yml
View
@@ -33,10 +33,9 @@ before_script:
export CURRENT_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
echo "Current YOURLS branch: $CURRENT_BRANCH"
cd tests
if [ `git branch --list $CURRENT_BRANCH `]
if [ `git checkout $CURRENT_BRANCH &> /dev/null; echo $?` == 0 ]
then
echo "Using branch $CURRENT_BRANCH for Tests as well"
git checkout $CURRENT_BRANCH
else
echo "Using branch master for Tests"
fi

0 comments on commit 5a6ba18

Please sign in to comment.