mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-28 06:07:53 +03:00
chore: make prepare_checkaout update browser_upstream/master (#2209)
This commit is contained in:
parent
28845e5ccc
commit
ebceaf4328
@ -91,15 +91,13 @@ else
|
||||
git remote add $REMOTE_BROWSER_UPSTREAM $REMOTE_URL
|
||||
fi
|
||||
|
||||
# Check if we have the $BASE_REVISION commit in GIT
|
||||
# If not, fetch from REMOTE_BROWSER_UPSTREAM and check one more time.
|
||||
git fetch $REMOTE_BROWSER_UPSTREAM $BASE_BRANCH
|
||||
if ! git cat-file -e $BASE_REVISION^{commit}; then
|
||||
# If not, fetch from REMOTE_BROWSER_UPSTREAM and check one more time.
|
||||
git fetch $REMOTE_BROWSER_UPSTREAM $BASE_BRANCH
|
||||
if ! git cat-file -e $BASE_REVISION^{commit}; then
|
||||
echo "ERROR: $FRIENDLY_CHECKOUT_PATH/ does not include the BASE_REVISION (@$BASE_REVISION). Wrong revision number?"
|
||||
exit 1
|
||||
fi
|
||||
echo "ERROR: $FRIENDLY_CHECKOUT_PATH/ does not include the BASE_REVISION (@$BASE_REVISION). Wrong revision number?"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "-- checking $FRIENDLY_CHECKOUT_PATH repo has BASE_REVISION (@$BASE_REVISION) commit - OK"
|
||||
|
||||
# Check out the $BASE_REVISION
|
||||
|
Loading…
Reference in New Issue
Block a user