Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit fa34e58

Browse files
committed
fix missing error in bfsCommitIterator
Signed-off-by: niukuo <niukuo@gmail.com>
1 parent e704ed5 commit fa34e58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plumbing/object/commit_walker_bfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (w *bfsCommitIterator) Next() (*Commit, error) {
6767
for _, h := range c.ParentHashes {
6868
err := w.appendHash(c.s, h)
6969
if err != nil {
70-
return nil, nil
70+
return nil, err
7171
}
7272
}
7373

0 commit comments

Comments
 (0)