aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/tree_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/object/tree_test.go')
-rw-r--r--plumbing/object/tree_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/plumbing/object/tree_test.go b/plumbing/object/tree_test.go
index 0ddf391..8ea31bb 100644
--- a/plumbing/object/tree_test.go
+++ b/plumbing/object/tree_test.go
@@ -266,7 +266,8 @@ func (s *TreeSuite) TestTreeWalkerNextNonRecursive(c *C) {
}
func (s *TreeSuite) TestTreeWalkerNextSubmodule(c *C) {
- st, err := filesystem.NewStorage(fixtures.ByTag("submodule").One().DotGit())
+ dotgit := fixtures.ByURL("https://github.com/git-fixtures/submodule.git").One().DotGit()
+ st, err := filesystem.NewStorage(dotgit)
c.Assert(err, IsNil)
hash := plumbing.NewHash("a692ec699bff9117c1ed91752afbb7d9d272ebef")
@@ -284,6 +285,8 @@ func (s *TreeSuite) TestTreeWalkerNextSubmodule(c *C) {
var count int
walker := NewTreeWalker(tree, true)
+ defer walker.Close()
+
for {
name, entry, err := walker.Next()
if err == io.EOF {