diff options
Diffstat (limited to 'storage/filesystem/object_test.go')
-rw-r--r-- | storage/filesystem/object_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/filesystem/object_test.go b/storage/filesystem/object_test.go index 361ae32..5752f79 100644 --- a/storage/filesystem/object_test.go +++ b/storage/filesystem/object_test.go @@ -124,9 +124,9 @@ func memStorageFromGitDir(fs fs.FS, path string) (core.ObjectStorage, error) { sto := memory.NewStorage() r := packfile.NewStream(f) - d := packfile.NewDecoder(r) + d := packfile.NewDecoder(r, sto.ObjectStorage()) - err = d.Decode(sto.ObjectStorage()) + err = d.Decode() if err != nil { return nil, err } @@ -267,8 +267,8 @@ func memStorageFromDirPath(fs fs.FS, path string) (core.ObjectStorage, error) { } r := packfile.NewStream(f) - d := packfile.NewDecoder(r) - err = d.Decode(sto.ObjectStorage()) + d := packfile.NewDecoder(r, sto.ObjectStorage()) + err = d.Decode() if err != nil { return nil, err } |