From a43164877c68dfe92c848fe0f4dab4a16090ad5e Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 25 Nov 2014 23:05:43 -0500 Subject: fix #664 --- routers/repo/commit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/repo/commit.go') 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 } -- cgit v1.2.3