aboutsummaryrefslogtreecommitdiffstats
path: root/submodule_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2021-05-02 23:40:08 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2021-05-02 23:40:08 +0200
commit01df7536992af375a54bbedf45369a475953e372 (patch)
tree8435050f4388f15b3a85d135a3f7d11b1ff61540 /submodule_test.go
parent67af9d7223b0cc643025d958c592291f7475ac75 (diff)
downloadgo-git-01df7536992af375a54bbedf45369a475953e372.tar.gz
*: use go-billy instead of os calls
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,