Skip to content

Commit 157593f

Browse files
committed
Don't trat a revwalk's ITEROVER as an error
1 parent e4b2222 commit 157593f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

walk.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ func (v *RevWalk) Iterate(fun RevWalkIterator) (err error) {
173173
return nil
174174
}
175175
if err != nil {
176+
if err.(GitError).Code == ErrIterOver {
177+
err = nil
178+
}
179+
176180
return err
177181
}
178182

0 commit comments

Comments
 (0)