ref: e939aaed8b22c9b822e236bbfffa277d1e8bcd3e
parent: d2b3f00df7cd601b0eed35d2594e016108765456
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Oct 19 03:12:23 EDT 2017
releaser: Correctly set final version on patch releases
--- a/releaser/releaser.go
+++ b/releaser/releaser.go
@@ -53,15 +53,11 @@
func (r ReleaseHandler) calculateVersions() (helpers.HugoVersion, helpers.HugoVersion) {
newVersion := helpers.MustParseHugoVersion(r.cliVersion)
- finalVersion := newVersion
+ finalVersion := newVersion.Next()
finalVersion.PatchLevel = 0
if newVersion.Suffix != "-test" {
newVersion.Suffix = ""
- }
-
- if newVersion.PatchLevel == 0 {
- finalVersion = finalVersion.Next()
}
finalVersion.Suffix = "-DEV"