diff options
| -rw-r--r-- | internal/yae/source.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/yae/source.go b/internal/yae/source.go index 20d16dc..d18fcce 100644 --- a/internal/yae/source.go +++ b/internal/yae/source.go @@ -118,6 +118,12 @@ func (source *Source) fetchLatestGitTag() (string, error) { refs := strings.Split(remotes, "\n") var latest string + for i := range refs { + if strings.HasSuffix(refs[i], "^{}") { + refs[i] = strings.TrimSuffix(refs[i], "^{}") + } + } + if source.TagPredicate == "" { latest = refs[len(refs)-2] } else { |