Skip to content

Commit f70b9f8

Browse files
authored
Trim git describe output (#1475)
Signed-off-by: Justin Kolberg <amd.prophet@gmail.com>
1 parent a28b893 commit f70b9f8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

version/cmd/version/version.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ func getTag() (string, error) {
7171
return "", err
7272
}
7373
}
74-
return string(out), nil
74+
tag := strings.Trim(string(out), "\n")
75+
return tag, nil
7576
}
7677

7778
func getTags() ([]string, error) {

0 commit comments

Comments
 (0)