Skip to content

Commit

Permalink
try something else
Browse files Browse the repository at this point in the history
  • Loading branch information
mitschabaude committed Oct 25, 2023
1 parent 8d431fa commit dcdd889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildkite/scripts/merges-cleanly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

BRANCH=$1
CURRENT=$(git branch --show-current)
echo 'Testing for conflicts between the current branch `'"${CURRENT}"'` and `'"${BRANCH}"'`...'
echo 'Testing for conflicts between the current branch `'"${BUILDKITE_BRANCH}"'` and `'"${BRANCH}"'`...'

# Adapted from this stackoverflow answer: https://stackoverflow.com/a/10856937
# The git merge-tree command shows the content of a 3-way merge without
Expand Down Expand Up @@ -33,7 +33,7 @@ if [ $RET -eq 0 ]; then
exit 0
else
# exclude branches for which merging cleanly is not a hard requirement
if [ "${CURRENT}" == "o1js-main" ]; then
if [ "${BUILDKITE_BRANCH}" == "o1js-main" ]; then
echo "Conflicts were found, but the current branch does not have to merge cleanly. Exiting with code 0."
exit 0
fi
Expand Down

0 comments on commit dcdd889

Please sign in to comment.