Skip to content

Commit ff91b97

Browse files
committed
The guard is to alert patchlevel of X.Y.0
1 parent 3e5b691 commit ff91b97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tool/merger.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def tag(relname)
116116
v, pl = version
117117
if relname
118118
abort "patchlevel is not -1 but '#{pl}' for preview or rc" if pl != '-1' && /-(?:preview|rc)/ =~ relname
119-
abort "patchlevel is not 0 but '#{pl}' for the first release" if pl != '0' && /-(?:preview|rc)/ !~ relname
119+
abort "patchlevel is not 0 but '#{pl}' for the first release" if pl != '0' && relname.end_with?(".0")
120120
pl = relname[/-(.*)\z/, 1]
121121
curver = "#{v.join('.')}#{("-#{pl}" if pl)}"
122122
if relname != curver

0 commit comments

Comments
 (0)