aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yae.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/yae.go b/yae.go
index 5b7703c..85502ef 100644
--- a/yae.go
+++ b/yae.go
@@ -263,6 +263,10 @@ func fetchLatestGitTag(source Source, show bool) (string, error) {
if source.TagPredicate == "" {
latest = refs[len(refs)-2]
+
+ if strings.Contains(latest, "refs/tags/") {
+ latest = strings.Split(latest, "/")[2]
+ }
} else {
for i := len(refs) - 2; i >= 0; i-- {
if strings.Contains(refs[i], source.TagPredicate) {