diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-14 18:21:10 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-14 18:21:10 +0200 |
commit | f6fe29c80d11662a169806dcf413ecdedcb28fa3 (patch) | |
tree | 9958034c27521f720f8c5d83c12120ada196f48a /tree.go | |
parent | 91bf16b2336e6f80f0742be729582fe5fbbada83 (diff) | |
download | go-git-f6fe29c80d11662a169806dcf413ecdedcb28fa3.tar.gz |
core: Storage, removing err returning *Storages
Diffstat (limited to 'tree.go')
-rw-r--r-- | tree.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -46,7 +46,7 @@ func (t *Tree) File(path string) (*File, error) { return nil, ErrFileNotFound } - obj, err := t.r.os.Get(e.Hash) + obj, err := t.r.s.ObjectStorage().Get(e.Hash) if err != nil { if err == core.ErrObjectNotFound { return nil, ErrFileNotFound // a git submodule @@ -86,7 +86,7 @@ func (t *Tree) dir(baseName string) (*Tree, error) { return nil, errDirNotFound } - obj, err := t.r.os.Get(entry.Hash) + obj, err := t.r.s.ObjectStorage().Get(entry.Hash) if err != nil { if err == core.ErrObjectNotFound { // git submodule return nil, errDirNotFound |