diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-25 23:05:43 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-25 23:05:43 -0500 |
commit | a43164877c68dfe92c848fe0f4dab4a16090ad5e (patch) | |
tree | df1d4f50350de8f7e17f2130feb1305e6ea0b485 /routers/repo/commit.go | |
parent | 515641d0338881560832a48e30f213663f244b68 (diff) | |
download | gitea-a43164877c68dfe92c848fe0f4dab4a16090ad5e.tar.gz gitea-a43164877c68dfe92c848fe0f4dab4a16090ad5e.zip |
fix #664
Diffstat (limited to 'routers/repo/commit.go')
-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 4a974aab8d..1174e62661 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 } |