aboutsummaryrefslogtreecommitdiffstats
path: root/tree.go
diff options
context:
space:
mode:
Diffstat (limited to 'tree.go')
-rw-r--r--tree.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tree.go b/tree.go
index 5896c7a..152fc34 100644
--- a/tree.go
+++ b/tree.go
@@ -46,7 +46,7 @@ func (t *Tree) File(path string) (*File, error) {
return nil, ErrFileNotFound
}
- obj, err := t.r.Storage.Get(e.Hash)
+ obj, err := t.r.os.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.Storage.Get(entry.Hash)
+ obj, err := t.r.os.Get(entry.Hash)
if err != nil {
if err == core.ErrObjectNotFound { // git submodule
return nil, errDirNotFound