Skip to content

Commit c4666d5

Browse files
committed
Release page show all tags in compare dropdown (go-gitea#20070)
1 parent 710a141 commit c4666d5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

routers/web/repo/release.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,12 @@ func releasesOrTags(ctx *context.Context, isTagList bool) {
9898
listOptions.PageSize = setting.API.MaxResponseItems
9999
}
100100

101-
tags, err := ctx.Repo.GitRepo.GetTags(listOptions.GetStartEnd())
101+
tagListStart, tagListEnd := listOptions.GetStartEnd()
102+
if !isTagList {
103+
// tags are used for compare feature witch needs all tags
104+
tagListStart, tagListEnd = 0, 0
105+
}
106+
tags, err := ctx.Repo.GitRepo.GetTags(tagListStart, tagListEnd)
102107
if err != nil {
103108
ctx.ServerError("GetTags", err)
104109
return

0 commit comments

Comments
 (0)