diff options
author | Unknwon <u@gogs.io> | 2017-03-16 22:28:32 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-16 22:28:32 -0400 |
commit | bc630cc52b81232d4cd9e8ab5cb9495683c5f7b8 (patch) | |
tree | 1e27071b620fee7702dbad20c58588761e197f04 /routers/repo/commit.go | |
parent | d591cb0dfb0fbd9572a3cbf600ef662ca5a99b05 (diff) |
repo/commit: able to config default commits page size (#4230)
Added config option '[ui.user] COMMITS_PAGING_NUM'.
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 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. |