aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/release.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/release.go')
-rw-r--r--routers/repo/release.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/release.go b/routers/repo/release.go
index e63521dae9..47dba813a4 100644
--- a/routers/repo/release.go
+++ b/routers/repo/release.go
@@ -158,7 +158,7 @@ func Releases(ctx *context.Context) {
}
}
- pager := paginater.New(ctx.Repo.Repository.NumTags, limit, page, 5)
+ pager := paginater.New(len(rawTags), limit, page, 5)
ctx.Data["Page"] = pager
ctx.Data["Releases"] = releaseTags
ctx.HTML(200, tplReleases)