aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2019-03-25 01:02:48 +0100
committerGitHub <noreply@github.com>2019-03-25 01:02:48 +0100
commitdef8f2530687eb024fc9a3f4ccbb33a422cdd16f (patch)
treec64bb4fcda2af8005ddd8e554d094d5de1132137
parente7099381e2fbc7bc0d46184f392a26383dc3ffbe (diff)
parentfa34e58bf6fc190bd577c6302a590dce9cdc6d41 (diff)
downloadgo-git-def8f2530687eb024fc9a3f4ccbb33a422cdd16f.tar.gz
Merge pull request #1092 from niukuo/master
fix missing error in bfsCommitIterator
-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
}
}