diff options
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/commit.go | 2 |
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 } |