Skip to content

Commit 6cf6cbc

Browse files
authored
fix: only include tags less then 16 chars
1 parent 66186cc commit 6cf6cbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/git/mod.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func FindTags(repo *Repository, reg *regexp.Regexp) ([]string, error) {
103103
defer tags.Close()
104104

105105
err = tags.ForEach(func(ref *plumbing.Reference) error {
106-
if len(ref.Name().Short()) < 15 && reg.MatchString(ref.Name().Short()) {
106+
if len(ref.Name().Short()) < 16 && reg.MatchString(ref.Name().Short()) {
107107
matchTags = append(matchTags, ref.Name().Short())
108108
}
109109

0 commit comments

Comments
 (0)