Skip to content

Commit

Permalink
fix: only include tags less then 16 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrqr authored Apr 1, 2022
1 parent 66186cc commit 6cf6cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/git/mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func FindTags(repo *Repository, reg *regexp.Regexp) ([]string, error) {
defer tags.Close()

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

Expand Down

0 comments on commit 6cf6cbc

Please sign in to comment.