Skip to content

Commit 9099b3f

Browse files
authored
fix: have current-version return biggest version if multiple tags point to a single commit (#161)
1 parent 165c128 commit 9099b3f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/app.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ func (g GitSV) LastTag() string {
9292
"for-each-ref",
9393
fmt.Sprintf("refs/tags/%s", *g.Config.Tag.Filter),
9494
"--sort",
95+
"-version:refname",
96+
"--sort",
9597
"-creatordate",
9698
"--format",
9799
"%(refname:short)",

0 commit comments

Comments
 (0)