devops: fix prepare checkout script on pristine machine (#7270)

Fixes #7269
This commit is contained in:
Andrey Lushnikov 2021-06-23 03:31:51 -07:00 committed by GitHub
parent 103f8ddd06
commit f342d8b0b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,6 +173,7 @@ if git remote get-url $REMOTE_BROWSER_UPSTREAM >/dev/null; then
else
echo "-- adding |$REMOTE_BROWSER_UPSTREAM| remote to $REMOTE_URL"
git remote add $REMOTE_BROWSER_UPSTREAM $REMOTE_URL
git fetch --depth 1 $REMOTE_BROWSER_UPSTREAM $BASE_BRANCH
fi
# Check if our checkout contains BASE_REVISION.