Don't trat a revwalk's ITEROVER as an error

This commit is contained in:
Carlos Martín Nieto 2015-08-31 13:13:27 +02:00
parent e4b2222888
commit 157593f38d
1 changed files with 4 additions and 0 deletions

View File

@ -173,6 +173,10 @@ func (v *RevWalk) Iterate(fun RevWalkIterator) (err error) {
return nil
}
if err != nil {
if err.(GitError).Code == ErrIterOver {
err = nil
}
return err
}