aboutsummaryrefslogtreecommitdiffhomepage
path: root/releaser
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-10-19 07:12:23 +0200
committerBjørn Erik Pedersen <[email protected]>2017-10-19 07:12:23 +0200
commite939aaed8b22c9b822e236bbfffa277d1e8bcd3e (patch)
tree6e302d363bd267fc519fc3f2daff700ea34dbf57 /releaser
parentd2b3f00df7cd601b0eed35d2594e016108765456 (diff)
downloadhugo-e939aaed8b22c9b822e236bbfffa277d1e8bcd3e.tar.gz
hugo-e939aaed8b22c9b822e236bbfffa277d1e8bcd3e.zip
releaser: Correctly set final version on patch releases
Diffstat (limited to 'releaser')
-rw-r--r--releaser/releaser.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/releaser/releaser.go b/releaser/releaser.go
index 1271cf179..02a98fa9f 100644
--- a/releaser/releaser.go
+++ b/releaser/releaser.go
@@ -53,17 +53,13 @@ type ReleaseHandler struct {
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"
return newVersion, finalVersion