summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-12 01:47:59 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-12 01:47:59 -0400
commit794b457252b270ae452b3ea946d91b216f27ac5d (patch)
treeb846a6d59ab8b00dbb791944f1002edf6a32d89e /models
parent790a2c1099f1e9946b854741ce8e5acfe12f119a (diff)
downloadgitea-794b457252b270ae452b3ea946d91b216f27ac5d.tar.gz
gitea-794b457252b270ae452b3ea946d91b216f27ac5d.zip
Mirror fix
Diffstat (limited to 'models')
-rw-r--r--models/git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/git.go b/models/git.go
index 10e8ca48ba..07f232977e 100644
--- a/models/git.go
+++ b/models/git.go
@@ -302,7 +302,7 @@ func ParsePatch(reader io.Reader) (*Diff, error) {
i = i + 1
// Diff data too large.
- if i == 10000 {
+ if i == 2000 {
return &Diff{}, nil
}