mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
Mirror fix
This commit is contained in:
1 parent
d305448fa8
commit
31d613c01d
3 files changed
+11
No files matched your search
@@ -300,6 +300,12 @@ func ParsePatch(reader io.Reader) (*Diff, error) {
|
||||
}
|
||||
|
||||
i = i + 1
|
||||
|
||||
// Diff data too large.
|
||||
if i == 10000 {
|
||||
return &Diff{}, nil
|
||||
}
|
||||
|
||||
if line == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user