src-d / go-git

Project has been moved to: https://github.com/go-git/go-git
https://github.com/go-git/go-git
Apache License 2.0
4.91k stars 541 forks source link

Handle EOF error in commitFileIter.ForEach #1204

Closed knqyf263 closed 4 years ago

knqyf263 commented 4 years ago

commitFileIter.ForEach always returns io.EOF error, so the first commit in this PR fails. The second commit fixes this problem by handling io.EOF.