aboutsummaryrefslogtreecommitdiffstats
path: root/tree.go
diff options
context:
space:
mode:
Diffstat (limited to 'tree.go')
-rw-r--r--tree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tree.go b/tree.go
index 16dc3e1..3a33f09 100644
--- a/tree.go
+++ b/tree.go
@@ -61,7 +61,7 @@ func (t *Tree) File(path string) (*File, error) {
blob := &Blob{}
blob.Decode(obj)
- return &File{Name: path, Reader: blob.Reader(), Hash: *hash}, nil
+ return newFile(path, blob), nil
}
func (t *Tree) findHash(path string) (*core.Hash, error) {