From bca9ae82745ffd619fd321f4200016c184849f94 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Tue, 1 Dec 2020 21:19:23 +0100 Subject: repo: more work towards RepoStorage --- repository/git_testing.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'repository/git_testing.go') 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) } -- cgit