aboutsummaryrefslogtreecommitdiffstats
path: root/submodule_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'submodule_test.go')
-rw-r--r--submodule_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/submodule_test.go b/submodule_test.go
index 418b3ee..4bae544 100644
--- a/submodule_test.go
+++ b/submodule_test.go
@@ -2,7 +2,6 @@ package git
import (
"context"
- "io/ioutil"
"os"
"path/filepath"
"testing"
@@ -24,8 +23,8 @@ var _ = Suite(&SubmoduleSuite{})
func (s *SubmoduleSuite) SetUpTest(c *C) {
path := fixtures.ByTag("submodule").One().Worktree().Root()
- dir, err := ioutil.TempDir("", "submodule")
- c.Assert(err, IsNil)
+ dir, clean := s.TemporalDir()
+ defer clean()
r, err := PlainClone(filepath.Join(dir, "worktree"), false, &CloneOptions{
URL: path,