Check upstream with git remote (#5377)

This commit is contained in:
Simon Mo
2019-08-06 17:30:33 -07:00
committed by Richard Liaw
parent d2e8331d9a
commit 50b93bf179
+2 -2
View File
@@ -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