Skip to content

Commit 48e0752

Browse files
committed
Fixing repo_test
Signed-off-by: Matt Farina <matt.farina@suse.com>
1 parent 0a47fee commit 48e0752

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface.
1313
Quick usage:
1414

1515
remote := "https://github.com/Masterminds/vcs"
16-
local, _ := ioutil.TempDir("", "go-vcs")
16+
local, _ := os.TempDir("", "go-vcs")
1717
repo, err := NewRepo(remote, local)
1818

1919
In this case `NewRepo` will detect the VCS is Git and return a `GitRepo`. All of

repo_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package vcs
33
import (
44
"fmt"
55
"log"
6+
"os"
67
"testing"
78
)
89

0 commit comments

Comments
 (0)