Mirror fix

This commit is contained in:
Unknown 2014-04-12 01:45:43 -04:00
parent d305448fa8
commit 31d613c01d
3 changed files with 11 additions and 0 deletions

View file

@ -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
}