summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-12 02:08:12 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-12 02:08:12 -0400
commit559a57330e11cdfd0d195cd1a59a73b6c4d49bd8 (patch)
tree9a86c1d97735f1137d4db78df954fc4470537e22
parent794b457252b270ae452b3ea946d91b216f27ac5d (diff)
downloadgitea-559a57330e11cdfd0d195cd1a59a73b6c4d49bd8.tar.gz
gitea-559a57330e11cdfd0d195cd1a59a73b6c4d49bd8.zip
Mirror fix
-rw-r--r--models/git.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/models/git.go b/models/git.go
index 07f232977e..e32b5ba96e 100644
--- a/models/git.go
+++ b/models/git.go
@@ -21,6 +21,7 @@ import (
"github.com/gogits/git"
"github.com/gogits/gogs/modules/base"
+ "github.com/gogits/gogs/modules/log"
)
// RepoFile represents a file object in git repository.
@@ -302,7 +303,8 @@ func ParsePatch(reader io.Reader) (*Diff, error) {
i = i + 1
// Diff data too large.
- if i == 2000 {
+ if i == 5000 {
+ log.Warn("Diff data too large")
return &Diff{}, nil
}