diff --git a/browser_patches/checkout_build_archive_upload.sh b/browser_patches/checkout_build_archive_upload.sh index 106a169928..14052e58d0 100755 --- a/browser_patches/checkout_build_archive_upload.sh +++ b/browser_patches/checkout_build_archive_upload.sh @@ -63,6 +63,13 @@ fi echo "-- preparing checkout" ./prepare_checkout.sh $BROWSER_NAME +cd ./$BROWSER_NAME/checkout +if ! [[ $(git rev-parse --abbrev-ref HEAD) == "playwright-build" ]]; then + echo "ERROR: Default branch is not playwright-build!" + exit 1 +fi +cd - + echo "-- cleaning" ./$BROWSER_NAME/clean.sh diff --git a/browser_patches/firefox/build.sh b/browser_patches/firefox/build.sh index a5aa57a609..ca64f909b5 100755 --- a/browser_patches/firefox/build.sh +++ b/browser_patches/firefox/build.sh @@ -6,15 +6,6 @@ trap "cd $(pwd -P)" EXIT cd "$(dirname $0)" cd "checkout" -BUILD_BRANCH="playwright-build" - -if ! [[ $(git rev-parse --abbrev-ref HEAD) == "$BUILD_BRANCH" ]]; then - echo "ERROR: Cannot build any branch other than $BUILD_BRANCH" - exit 1; -else - echo "-- checking git branch is $BUILD_BRANCH - OK" -fi - if [[ "$(uname)" == "Darwin" ]]; then # Firefox currently does not build on 10.15 out of the box - it requires SDK for 10.14. # Make sure the SDK is out there. diff --git a/browser_patches/webkit/build.sh b/browser_patches/webkit/build.sh index a5ee0ae6c8..9f44a97623 100755 --- a/browser_patches/webkit/build.sh +++ b/browser_patches/webkit/build.sh @@ -6,15 +6,6 @@ trap "cd $(pwd -P)" EXIT cd "$(dirname $0)" cd "checkout" -BUILD_BRANCH="playwright-build" - -if ! [[ $(git rev-parse --abbrev-ref HEAD) == "$BUILD_BRANCH" ]]; then - echo "ERROR: Cannot build any branch other than $BUILD_BRANCH" - exit 1; -else - echo "-- checking git branch is $BUILD_BRANCH - OK" -fi - if [[ "$(uname)" == "Darwin" ]]; then ./Tools/Scripts/build-webkit --release elif [[ "$(uname)" == "Linux" ]]; then