From 65427f64599e9383ab926aed75fc02f2db32022d Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Mon, 5 Sep 2016 07:59:20 +0200 Subject: core: ObjectStorage.Begin and TxObjectStorage --- storage/filesystem/object_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'storage/filesystem/object_test.go') 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 } -- cgit