devops: fix prepare_checkout.sh script (#8055)

Fixes #8044
This commit is contained in:
Andrey Lushnikov 2021-08-06 22:01:41 +03:00 committed by GitHub
parent 2e63c59157
commit c8b54a5b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,8 +172,7 @@ if git remote get-url $REMOTE_BROWSER_UPSTREAM >/dev/null; then
git remote set-url $REMOTE_BROWSER_UPSTREAM $REMOTE_URL
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
git remote rename origin $REMOTE_BROWSER_UPSTREAM
fi
# Check if our checkout contains BASE_REVISION.