aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/commit.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/commit.go')
-rw-r--r--routers/repo/commit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index 4a974aab..1174e626 100644
--- a/routers/repo/commit.go
+++ b/routers/repo/commit.go
@@ -62,7 +62,7 @@ func Commits(ctx *middleware.Context) {
lastPage = 0
}
nextPage := page + 1
- if nextPage*50 > commitsCount {
+ if page*50 > commitsCount {
nextPage = 0
}