summaryrefslogtreecommitdiffstats
path: root/services/issue
diff options
context:
space:
mode:
Diffstat (limited to 'services/issue')
-rw-r--r--services/issue/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/issue/issue.go b/services/issue/issue.go
index 06da47152c..ce2b1c0976 100644
--- a/services/issue/issue.go
+++ b/services/issue/issue.go
@@ -206,7 +206,7 @@ func GetRefEndNamesAndURLs(issues []*issues_model.Issue, repoLink string) (map[i
issueRefURLs := make(map[int64]string, len(issues))
for _, issue := range issues {
if issue.Ref != "" {
- issueRefEndNames[issue.ID] = git.RefEndName(issue.Ref)
+ issueRefEndNames[issue.ID] = git.RefName(issue.Ref).ShortName()
issueRefURLs[issue.ID] = git.RefURL(repoLink, issue.Ref)
}
}