Skip to content

Commit 2cf0b07

Browse files
committed
Record CURR_BRANCH before we change it to MAINLINE_BRANCH
1 parent 46a78df commit 2cf0b07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildkite/scripts/check-compatibility.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
set -eox pipefail
66

7+
CURR_BRANCH=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD)
8+
79
function get_shas {
810
SHAS=$(git log -n 10 --format="%h" --abbrev=7 --first-parent)
911
}
@@ -148,8 +150,6 @@ fi
148150

149151
MAIN_BRANCH_IMAGE_TAG=$IMAGE_TAG
150152

151-
CURR_BRANCH=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD)
152-
153153
echo "Checking out PR branch"
154154
git checkout $CURR_BRANCH
155155

0 commit comments

Comments
 (0)