diff --git a/releases/git.go b/releases/git.go index e19ec78..ef8ce04 100644 --- a/releases/git.go +++ b/releases/git.go @@ -81,7 +81,7 @@ func getCommit() string { // Get a description of the commit, e.g. v0.30.1 (latest) or v0.30.1-32-gfe72ff73 (canary) func getVersion() string { - version, _ := shx.OutputS("git", "describe", "--tags") + version, _ := shx.OutputS("git", "describe", "--tags", "--match=v*") if version != "" { return version }