From bc630cc52b81232d4cd9e8ab5cb9495683c5f7b8 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 16 Mar 2017 22:28:32 -0400 Subject: repo/commit: able to config default commits page size (#4230) Added config option '[ui.user] COMMITS_PAGING_NUM'. --- 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 0153ccfe..a2752fdd 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -52,7 +52,7 @@ func renderCommits(ctx *context.Context, filename string) { } pageSize := ctx.QueryInt("pageSize") if pageSize < 1 { - pageSize = git.DEFAULT_COMMITS_PAGE_SIZE + pageSize = git.DefaultCommitsPageSize } // Both 'git log branchName' and 'git log commitID' work. -- cgit v1.2.3