Skip to content

Commit

Permalink
Merge pull request #41 from kichristensen/calculateVersionCorrectly
Browse files Browse the repository at this point in the history
Calculate version correctly when multiple tags are present
  • Loading branch information
schristoff committed Jun 27, 2024
2 parents 9808687 + f605ad4 commit 081303e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion releases/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 081303e

Please sign in to comment.