devops: fix prepare checkout script on pristine machine (#7270)
Fixes #7269
This commit is contained in:
parent
103f8ddd06
commit
f342d8b0b1
|
|
@ -173,6 +173,7 @@ if git remote get-url $REMOTE_BROWSER_UPSTREAM >/dev/null; then
|
||||||
else
|
else
|
||||||
echo "-- adding |$REMOTE_BROWSER_UPSTREAM| remote to $REMOTE_URL"
|
echo "-- adding |$REMOTE_BROWSER_UPSTREAM| remote to $REMOTE_URL"
|
||||||
git remote add $REMOTE_BROWSER_UPSTREAM $REMOTE_URL
|
git remote add $REMOTE_BROWSER_UPSTREAM $REMOTE_URL
|
||||||
|
git fetch --depth 1 $REMOTE_BROWSER_UPSTREAM $BASE_BRANCH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if our checkout contains BASE_REVISION.
|
# Check if our checkout contains BASE_REVISION.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue