aboutsummaryrefslogtreecommitdiffstats
path: root/repository/git_testing.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-12-01 21:19:23 +0100
committerMichael Muré <batolettre@gmail.com>2020-12-05 21:41:10 +0100
commitbca9ae82745ffd619fd321f4200016c184849f94 (patch)
tree6223d23c3e865bd2d29ea888d944a57467f2b44d /repository/git_testing.go
parent28adf41af6a5c0f4b19875912d056b03ea6710f8 (diff)
downloadgit-bug-bca9ae82745ffd619fd321f4200016c184849f94.tar.gz
repo: more work towards RepoStorage
Diffstat (limited to 'repository/git_testing.go')
-rw-r--r--repository/git_testing.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/repository/git_testing.go b/repository/git_testing.go
index 874cc86c..2168d53e 100644
--- a/repository/git_testing.go
+++ b/repository/git_testing.go
@@ -48,14 +48,12 @@ func SetupReposAndRemote() (repoA, repoB, remote TestedRepo) {
repoB = CreateGoGitTestRepo(false)
remote = CreateGoGitTestRepo(true)
- remoteAddr := "file://" + remote.GetPath()
-
- err := repoA.AddRemote("origin", remoteAddr)
+ err := repoA.AddRemote("origin", remote.GetLocalRemote())
if err != nil {
log.Fatal(err)
}
- err = repoB.AddRemote("origin", remoteAddr)
+ err = repoB.AddRemote("origin", remote.GetLocalRemote())
if err != nil {
log.Fatal(err)
}