aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/commit_walker_bfs.go
diff options
context:
space:
mode:
authorniukuo <niukuo@gmail.com>2019-03-21 19:26:48 +0800
committerniukuo <niukuo@gmail.com>2019-03-21 19:26:48 +0800
commitfa34e58bf6fc190bd577c6302a590dce9cdc6d41 (patch)
tree7f2baab867f3a7bac6815d8ffe557d20b22312d2 /plumbing/object/commit_walker_bfs.go
parente704ed55d364c1e5ceefbf47c4280c1904d6b1ca (diff)
downloadgo-git-fa34e58bf6fc190bd577c6302a590dce9cdc6d41.tar.gz
fix missing error in bfsCommitIterator
Signed-off-by: niukuo <niukuo@gmail.com>
Diffstat (limited to 'plumbing/object/commit_walker_bfs.go')
-rw-r--r--plumbing/object/commit_walker_bfs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/object/commit_walker_bfs.go b/plumbing/object/commit_walker_bfs.go
index aef1cf2..dabfe75 100644
--- a/plumbing/object/commit_walker_bfs.go
+++ b/plumbing/object/commit_walker_bfs.go
@@ -67,7 +67,7 @@ func (w *bfsCommitIterator) Next() (*Commit, error) {
for _, h := range c.ParentHashes {
err := w.appendHash(c.s, h)
if err != nil {
- return nil, nil
+ return nil, err
}
}