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 eaa0c15..462589d 100644
--- a/tree.go
+++ b/tree.go
@@ -62,7 +62,7 @@ func (t *Tree) File(path string) (*File, error) {
blob := &Blob{}
blob.Decode(obj)
- return newFile(path, e.Mode, blob), nil
+ return NewFile(path, e.Mode, blob), nil
}
func (t *Tree) findEntry(path string) (*TreeEntry, error) {