Skip to content

Commit 081303e

Browse files
authored
Merge pull request #41 from kichristensen/calculateVersionCorrectly
Calculate version correctly when multiple tags are present
2 parents 9808687 + f605ad4 commit 081303e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

releases/git.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func getCommit() string {
8181

8282
// Get a description of the commit, e.g. v0.30.1 (latest) or v0.30.1-32-gfe72ff73 (canary)
8383
func getVersion() string {
84-
version, _ := shx.OutputS("git", "describe", "--tags")
84+
version, _ := shx.OutputS("git", "describe", "--tags", "--match=v*")
8585
if version != "" {
8686
return version
8787
}

0 commit comments

Comments
 (0)