mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 00:46:14 +08:00
TRAVIS_PULL_REQUEST is false for non-PRs, not empty (#9439)
Co-authored-by: Mehrdad <noreply@github.com>
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ before_install:
|
||||
git clone -q -n "https://github.com/${TRAVIS_REPO_SLUG}.git" "${TRAVIS_REPO_SLUG}"
|
||||
cd -- "${TRAVIS_REPO_SLUG}"
|
||||
to_fetch=("${TRAVIS_COMMIT}")
|
||||
if [ -n "${TRAVIS_PULL_REQUEST-}" ]; then to_fetch+=("+refs/pull/${TRAVIS_PULL_REQUEST}/merge:"); fi
|
||||
if [ false != "${TRAVIS_PULL_REQUEST-}" ]; then to_fetch+=("+refs/pull/${TRAVIS_PULL_REQUEST}/merge:"); fi
|
||||
git fetch -q -- origin "${to_fetch[@]}"
|
||||
git checkout -qf "${TRAVIS_COMMIT}" --
|
||||
|
||||
|
||||
Reference in New Issue
Block a user