Mirror fix
This commit is contained in:
parent
d305448fa8
commit
31d613c01d
3 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue