From 77cd9d78db07a0030f00ff87b1bcc2536217df2a Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 22 May 2017 16:34:15 +0100 Subject: [PATCH] Use develop if no matching branch found --- .travis-test-riot.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis-test-riot.sh b/.travis-test-riot.sh index bab8242146..ee0f45e1ec 100755 --- a/.travis-test-riot.sh +++ b/.travis-test-riot.sh @@ -12,9 +12,11 @@ REACT_SDK_DIR=`pwd` curbranch="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" echo "Determined branch to be $curbranch" -git clone --depth=1 --branch "$curbranch" https://github.com/vector-im/riot-web.git \ +git clone --depth=1 https://github.com/vector-im/riot-web.git \ "$RIOT_WEB_DIR" +git checkout "$curbranch" || git checkout develop + cd "$RIOT_WEB_DIR" mkdir node_modules