diff options
author | ferhat elmas <elmas.ferhat@gmail.com> | 2017-11-21 22:26:13 +0100 |
---|---|---|
committer | ferhat elmas <elmas.ferhat@gmail.com> | 2017-11-21 22:26:31 +0100 |
commit | 690ad8809a1b2eb3f68f072103229cd325e59afc (patch) | |
tree | 789f7877b10c0356f2f947f855f0829c95438242 /plumbing | |
parent | b08cc8dc5450981530af3e6f6ad1159ae8ea8705 (diff) | |
download | go-git-690ad8809a1b2eb3f68f072103229cd325e59afc.tar.gz |
plumbing/object: do not eat error on tree decode
Diffstat (limited to 'plumbing')
-rw-r--r-- | plumbing/object/tree.go | 4 |
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") |