Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

release: Stop accepting `<version>-branch` branches.

Benjamin Prewd3b54684908c
diff --git a/docs/processes/release-checklist.md b/docs/processes/release-checklist.md
index 4bdc146d5f8..21597c39741 100644
--- a/docs/processes/release-checklist.md
+++ b/docs/processes/release-checklist.md
@@ -134,8 +134,6 @@ preparing a new release.
suffix, e.g., `7.0-beta3+git`. Push this to `main`. (If `main` has
already diverged from the prerelease, a merge commit will be
needed here.)
- - Delete the prerelease branch (e.g., `7.0-beta3-branch`); it's now
- an ancestor of `main` and thus unnecessary.
### Important permissions for executing the release
diff --git a/tools/release b/tools/release
index 5b6f170850d..6ed5e0232ed 100755
--- a/tools/release
+++ b/tools/release
@@ -21,7 +21,7 @@ version="$1"
# Check we're on `main` or `\d+\.x`
branch=$(git rev-parse --abbrev-ref HEAD)
-[ "$branch" == "main" ] || [[ "$branch" =~ ^[0-9]+\.x$ ]] || [ "$branch" == "${version}-branch" ] \
+[ "$branch" == "main" ] || [[ "$branch" =~ ^[0-9]+\.x$ ]] \
|| fail "Current branch '$branch' is not 'main' or a release branch"
is_prerelease=