Skip to content

Commit

Permalink
Correctly bump patch version when there are some commits above last tag
Browse files Browse the repository at this point in the history
  • Loading branch information
unkaktus committed Mar 7, 2018
1 parent 417b8bb commit b9c4701
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sembump/sembump.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ func main() {
v = version.IncMinor()
case *patchFlag:
v = version.IncPatch()
if version.Prerelease() != "" {
v = v.IncPatch()
}
}
tag = "v" + v.String()
log.Printf("tagging with %s", tag)
Expand Down

0 comments on commit b9c4701

Please sign in to comment.