From 566ccf40172ac45083dec9e350e956642784133d Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Sun, 29 Mar 2026 18:49:18 +0000 Subject: [PATCH] fix(scripts): anchor grep pattern to prevent false tag match grep -q "refs/tags/$TAG" matched substrings, so v0.27.0b0 would block release of v0.27.0. Changed to "refs/tags/${TAG}$" to require exact end-of-line match. --- scripts/release/prepare | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release/prepare b/scripts/release/prepare index 64e42f5..37303bd 100755 --- a/scripts/release/prepare +++ b/scripts/release/prepare @@ -76,7 +76,7 @@ if git rev-parse "$TAG" >/dev/null 2>&1; then die "Tag $TAG already exists locally\\nTo remove it: git tag -d $TAG" fi -if git ls-remote --tags origin | grep -q "refs/tags/$TAG"; then +if git ls-remote --tags origin | grep -q "refs/tags/${TAG}$"; then die "Tag $TAG already exists on remote" fi