summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2015-01-02 20:14:43 +0800
committerUnknwon <joe2010xtmf@163.com>2015-01-02 20:14:43 +0800
commitc73e9057ae949bd0c0bf329b23d4e5da4ac154d0 (patch)
tree58a2d8bb67ad7b5846bbb2a17809dcef54fa6f79 /routers
parent0b56272c130c88fc4441fb1cba04657fe73efc38 (diff)
downloadgitea-c73e9057ae949bd0c0bf329b23d4e5da4ac154d0.tar.gz
gitea-c73e9057ae949bd0c0bf329b23d4e5da4ac154d0.zip
Optmize git-fsck options and fix #820
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/commit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index 619c6c815c..4571b24f2a 100644
--- a/routers/repo/commit.go
+++ b/routers/repo/commit.go
@@ -208,7 +208,7 @@ func Diff(ctx *middleware.Context) {
commit := ctx.Repo.Commit
commit.CommitMessage = string(base.RenderIssueIndexPattern([]byte(commit.CommitMessage), ctx.Repo.RepoLink))
diff, err := models.GetDiffCommit(models.RepoPath(userName, repoName),
- commitId, setting.MaxGitDiffLines)
+ commitId, setting.Git.MaxGitDiffLines)
if err != nil {
ctx.Handle(404, "GetDiffCommit", err)
return
@@ -272,7 +272,7 @@ func CompareDiff(ctx *middleware.Context) {
}
diff, err := models.GetDiffRange(models.RepoPath(userName, repoName), beforeCommitId,
- afterCommitId, setting.MaxGitDiffLines)
+ afterCommitId, setting.Git.MaxGitDiffLines)
if err != nil {
ctx.Handle(404, "GetDiffRange", err)
return