aboutsummaryrefslogtreecommitdiffstats
path: root/utils/difftree
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-14 00:44:18 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-14 00:44:18 +0200
commitf826cf9d42cc34e2ae5aaf6ede892ecab9d2f198 (patch)
tree7555e7596887f239ce26828e98142e4df25c388f /utils/difftree
parent79087748f60f9aba219624a0fe9f4d33a0b51236 (diff)
downloadgo-git-f826cf9d42cc34e2ae5aaf6ede892ecab9d2f198.tar.gz
fix tests and examples
Diffstat (limited to 'utils/difftree')
-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)