mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-19 03:08:30 +08:00
Mirror fix
This commit is contained in:
@ -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