mirror of https://github.com/zulip/zulip.git
release: Be explicit about which branch was expected.
This commit is contained in:
parent
abb7a63b62
commit
e95e8b985f
|
@ -27,11 +27,12 @@ branch=$(git rev-parse --abbrev-ref HEAD)
|
||||||
is_major_release=
|
is_major_release=
|
||||||
if [[ "$version" =~ ^[0-9]+\.0$ ]]; then
|
if [[ "$version" =~ ^[0-9]+\.0$ ]]; then
|
||||||
[ "$branch" == "main" ] \
|
[ "$branch" == "main" ] \
|
||||||
|| fail "Did not expect $version to be released from $branch"
|
|| fail "Did not expect $version to be released from $branch, expected main"
|
||||||
is_major_release=1
|
is_major_release=1
|
||||||
else
|
else
|
||||||
[ "$branch" == "$(echo "$version" | perl -ple 's/\..*/.x/')" ] \
|
expected_branch="$(echo "$version" | perl -ple 's/\..*/.x/')"
|
||||||
|| fail "Did not expect $version to be released from $branch"
|
[ "$branch" == "$expected_branch" ] \
|
||||||
|
|| fail "Did not expect $version to be released from $branch, expected $expected_branch"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# shellcheck source=lib/git-tools.bash
|
# shellcheck source=lib/git-tools.bash
|
||||||
|
|
Loading…
Reference in New Issue