aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/tree.go
diff options
context:
space:
mode:
authorferhat elmas <elmas.ferhat@gmail.com>2017-11-21 22:26:13 +0100
committerferhat elmas <elmas.ferhat@gmail.com>2017-11-21 22:26:31 +0100
commit690ad8809a1b2eb3f68f072103229cd325e59afc (patch)
tree789f7877b10c0356f2f947f855f0829c95438242 /plumbing/object/tree.go
parentb08cc8dc5450981530af3e6f6ad1159ae8ea8705 (diff)
downloadgo-git-690ad8809a1b2eb3f68f072103229cd325e59afc.tar.gz
plumbing/object: do not eat error on tree decode
Diffstat (limited to 'plumbing/object/tree.go')
-rw-r--r--plumbing/object/tree.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/object/tree.go b/plumbing/object/tree.go
index 44ac720..2fcd979 100644
--- a/plumbing/object/tree.go
+++ b/plumbing/object/tree.go
@@ -136,9 +136,9 @@ func (t *Tree) dir(baseName string) (*Tree, error) {
}
tree := &Tree{s: t.s}
- tree.Decode(obj)
+ err = tree.Decode(obj)
- return tree, nil
+ return tree, err
}
var errEntryNotFound = errors.New("entry not found")