Skip to content

Commit ed70a41

Browse files
authored
Fix patch branch comparison (#314)
1 parent 64f963e commit ed70a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ def make_tag(tag: Tag, *, sign_gpg: bool = True) -> bool:
771771
if tag.patch > 0:
772772
if (
773773
get_output(["git", "name-rev", "--name-only", "HEAD"]).strip().decode()
774-
!= tag.basic_version
774+
!= f"branch-{tag}"
775775
):
776776
print("It doesn't look like you're on the correct branch.")
777777
if input("Are you sure you want to tag? (y/n) > ").lower() not in (

0 commit comments

Comments
 (0)