mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-29 07:03:55 +03:00
Mirror fix
This commit is contained in:
parent
794b457252
commit
559a57330e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue