diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2018-09-08 09:31:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-08 09:31:20 +0200 |
commit | 208b3c3c32beaab14ebb7adf162fc136c939e99c (patch) | |
tree | 33e2e984150cebe2105d84479538128bfaf2ff93 /plumbing/object/tree_test.go | |
parent | a4b12e4161738af6f724776c0c8c55f90542f06f (diff) | |
parent | 8f6b3127c1ff7661113fff2662416c328971a285 (diff) | |
download | go-git-208b3c3c32beaab14ebb7adf162fc136c939e99c.tar.gz |
Merge pull request #949 from kuba--/custom-cache
Expose Storage cache.
Diffstat (limited to 'plumbing/object/tree_test.go')
-rw-r--r-- | plumbing/object/tree_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/object/tree_test.go b/plumbing/object/tree_test.go index 59d5d21..7366421 100644 --- a/plumbing/object/tree_test.go +++ b/plumbing/object/tree_test.go @@ -5,6 +5,7 @@ import ( "io" "gopkg.in/src-d/go-git.v4/plumbing" + "gopkg.in/src-d/go-git.v4/plumbing/cache" "gopkg.in/src-d/go-git.v4/plumbing/filemode" "gopkg.in/src-d/go-git.v4/plumbing/storer" "gopkg.in/src-d/go-git.v4/storage/filesystem" @@ -341,8 +342,7 @@ func (s *TreeSuite) TestTreeWalkerNextNonRecursive(c *C) { func (s *TreeSuite) TestTreeWalkerNextSubmodule(c *C) { dotgit := fixtures.ByURL("https://github.com/git-fixtures/submodule.git").One().DotGit() - st, err := filesystem.NewStorage(dotgit) - c.Assert(err, IsNil) + st := filesystem.NewStorage(dotgit, cache.NewObjectLRUDefault()) hash := plumbing.NewHash("b685400c1f9316f350965a5993d350bc746b0bf4") commit, err := GetCommit(st, hash) |