We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 710a141 commit c4666d5Copy full SHA for c4666d5
routers/web/repo/release.go
@@ -98,7 +98,12 @@ func releasesOrTags(ctx *context.Context, isTagList bool) {
98
listOptions.PageSize = setting.API.MaxResponseItems
99
}
100
101
- tags, err := ctx.Repo.GitRepo.GetTags(listOptions.GetStartEnd())
+ 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)
107
if err != nil {
108
ctx.ServerError("GetTags", err)
109
return
0 commit comments