You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
283 B
13 lines
283 B
|
8 years ago
|
#!/bin/sh
|
||
|
|
|
||
|
|
set -e
|
||
|
|
|
||
|
|
org="$1"
|
||
|
|
repo="$2"
|
||
|
|
|
||
|
|
curbranch="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
|
||
|
|
echo "Determined branch to be $curbranch"
|
||
|
|
|
||
|
|
git clone https://github.com/$org/$repo.git $repo --branch "$curbranch" || git clone https://github.com/$org/$repo.git $repo --branch develop
|
||
|
|
|