aboutsummaryrefslogtreecommitdiffstats
path: root/utils/difftree/difftree_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/difftree/difftree_test.go')
-rw-r--r--utils/difftree/difftree_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/difftree/difftree_test.go b/utils/difftree/difftree_test.go
index 558d64d..b13c228 100644
--- a/utils/difftree/difftree_test.go
+++ b/utils/difftree/difftree_test.go
@@ -43,14 +43,16 @@ func (s *DiffTreeSuite) SetUpSuite(c *C) {
s.repos = make(map[string]*git.Repository, 0)
for _, fixRepo := range fixtureRepos {
- s.repos[fixRepo.url] = git.NewPlainRepository()
+ s.repos[fixRepo.url], _ = git.NewMemoryRepository()
f, err := os.Open(fixRepo.packfile)
c.Assert(err, IsNil)
r := packfile.NewSeekable(f)
d := packfile.NewDecoder(r)
- err = d.Decode(s.repos[fixRepo.url].Storage)
+
+ os, _ := s.repos[fixRepo.url].Storage.ObjectStorage()
+ err = d.Decode(os)
c.Assert(err, IsNil)
c.Assert(f.Close(), IsNil)