diff options
author | Michael Muré <batolettre@gmail.com> | 2020-12-01 21:19:23 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-12-05 21:41:10 +0100 |
commit | bca9ae82745ffd619fd321f4200016c184849f94 (patch) | |
tree | 6223d23c3e865bd2d29ea888d944a57467f2b44d /repository/gogit_testing.go | |
parent | 28adf41af6a5c0f4b19875912d056b03ea6710f8 (diff) | |
download | git-bug-bca9ae82745ffd619fd321f4200016c184849f94.tar.gz |
repo: more work towards RepoStorage
Diffstat (limited to 'repository/gogit_testing.go')
-rw-r--r-- | repository/gogit_testing.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/repository/gogit_testing.go b/repository/gogit_testing.go index f20ff6be..a8bff41e 100644 --- a/repository/gogit_testing.go +++ b/repository/gogit_testing.go @@ -42,14 +42,12 @@ func SetupGoGitReposAndRemote() (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) } |