aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/object.go
diff options
context:
space:
mode:
Diffstat (limited to 'storage/filesystem/object.go')
-rw-r--r--storage/filesystem/object.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/filesystem/object.go b/storage/filesystem/object.go
index 5868748..7b7bc18 100644
--- a/storage/filesystem/object.go
+++ b/storage/filesystem/object.go
@@ -181,7 +181,7 @@ func (s *ObjectStorage) getFromPackfile(h plumbing.Hash) (plumbing.Object, error
}
d.SetOffsets(s.index[pack])
- return d.ReadObjectAt(offset)
+ return d.DecodeObjectAt(offset)
}
func (s *ObjectStorage) findObjectInPackfile(h plumbing.Hash) (plumbing.Hash, int64) {
@@ -297,7 +297,7 @@ func (iter *packfileIter) Next() (plumbing.Object, error) {
return nil, io.EOF
}
- obj, err := iter.d.ReadObject()
+ obj, err := iter.d.DecodeObject()
if err != nil {
return nil, err
}