Skip to content

Commit

Permalink
Check upstream with git remote (ray-project#5377)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-mo authored and richardliaw committed Aug 7, 2019
1 parent d2e8331 commit 50b93bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/travis/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ builtin cd "$(dirname "${BASH_SOURCE:-$0}")"
ROOT="$(git rev-parse --show-toplevel)"
builtin cd "$ROOT" || exit 1

# Add the upstream branch if it doesn't exist
if ! [[ -e "$ROOT/.git/refs/remotes/upstream" ]]; then
# Add the upstream remote if it doesn't exist
if ! git remote -v | grep -q upstream; then
git remote add 'upstream' 'https://github.com/ray-project/ray.git'
fi

Expand Down

0 comments on commit 50b93bf

Please sign in to comment.