We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c8c495 + 8b98705 commit b924465Copy full SHA for b924465
git.go
@@ -10,7 +10,7 @@ import (
10
"time"
11
)
12
13
-const _VERSION = "0.2.4"
+const _VERSION = "0.2.5"
14
15
func Version() string {
16
return _VERSION
utlis.go
@@ -86,9 +86,10 @@ func RefEndName(refStr string) string {
86
return refStr[len("refs/heads/"):]
87
}
88
89
- index := strings.LastIndex(refStr, "/")
90
- if index != -1 {
91
- return refStr[index+1:]
+ if strings.HasPrefix(refStr, "refs/tags/") {
+ // trim the "refs/heads/"
+ return refStr[len("refs/tags/"):]
92
93
+
94
return refStr
95
0 commit comments