mirror of
https://github.com/gohugoio/hugo.git
synced 2025-07-07 01:12:03 +00:00
Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
|
48e33e10af | ||
|
9e05fbaad4 |
3 changed files with 10 additions and 4 deletions
|
@ -341,7 +341,7 @@ description = ""
|
||||||
homepage = "http://example.com/"
|
homepage = "http://example.com/"
|
||||||
tags = []
|
tags = []
|
||||||
features = []
|
features = []
|
||||||
min_version = "0.112.0"
|
min_version = "0.112.5"
|
||||||
|
|
||||||
[author]
|
[author]
|
||||||
name = ""
|
name = ""
|
||||||
|
|
|
@ -17,7 +17,7 @@ package hugo
|
||||||
// This should be the only one.
|
// This should be the only one.
|
||||||
var CurrentVersion = Version{
|
var CurrentVersion = Version{
|
||||||
Major: 0,
|
Major: 0,
|
||||||
Minor: 113,
|
Minor: 112,
|
||||||
PatchLevel: 0,
|
PatchLevel: 5,
|
||||||
Suffix: "-DEV",
|
Suffix: "",
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,6 +46,12 @@ func New(skipPush, try bool, step int) (*ReleaseHandler, error) {
|
||||||
return nil, fmt.Errorf("branch %q is not a release branch", branch)
|
return nil, fmt.Errorf("branch %q is not a release branch", branch)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Trim any cache busting suffix, e.g "release-0.90.0-take2"
|
||||||
|
takeIdx := strings.Index(branch, "-take")
|
||||||
|
if takeIdx > 0 {
|
||||||
|
branch = branch[:takeIdx]
|
||||||
|
}
|
||||||
|
|
||||||
version := strings.TrimPrefix(branch, prefix)
|
version := strings.TrimPrefix(branch, prefix)
|
||||||
version = strings.TrimPrefix(version, "v")
|
version = strings.TrimPrefix(version, "v")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue