diff options
author | niukuo <niukuo@gmail.com> | 2019-03-21 19:26:48 +0800 |
---|---|---|
committer | niukuo <niukuo@gmail.com> | 2019-03-21 19:26:48 +0800 |
commit | fa34e58bf6fc190bd577c6302a590dce9cdc6d41 (patch) | |
tree | 7f2baab867f3a7bac6815d8ffe557d20b22312d2 | |
parent | e704ed55d364c1e5ceefbf47c4280c1904d6b1ca (diff) | |
download | go-git-fa34e58bf6fc190bd577c6302a590dce9cdc6d41.tar.gz |
fix missing error in bfsCommitIterator
Signed-off-by: niukuo <niukuo@gmail.com>
-rw-r--r-- | plumbing/object/commit_walker_bfs.go | 2 |
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 } } |