From 690ad8809a1b2eb3f68f072103229cd325e59afc Mon Sep 17 00:00:00 2001 From: ferhat elmas Date: Tue, 21 Nov 2017 22:26:13 +0100 Subject: plumbing/object: do not eat error on tree decode --- plumbing/object/tree.go | 4 ++-- 1 file 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") -- cgit