aboutsummaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-10-04 19:56:16 +0200
committerMichael Muré <batolettre@gmail.com>2020-10-04 19:56:16 +0200
commit1a0c86a12d68a2f0ee99cbff535c82e07b735108 (patch)
treecd83782c576f2869555913d753de1351ff94a547 /bridge
parent9bc2483df054387c1241b2e1644ab7e6e9bc4e9a (diff)
downloadgit-bug-1a0c86a12d68a2f0ee99cbff535c82e07b735108.tar.gz
repo: use go-git in more places, fix push
Diffstat (limited to 'bridge')
-rw-r--r--bridge/github/export_test.go4
-rw-r--r--bridge/github/import_test.go2
-rw-r--r--bridge/gitlab/export_test.go4
-rw-r--r--bridge/gitlab/import_test.go2
4 files changed, 6 insertions, 6 deletions
diff --git a/bridge/github/export_test.go b/bridge/github/export_test.go
index b160ac7f..5b9a3495 100644
--- a/bridge/github/export_test.go
+++ b/bridge/github/export_test.go
@@ -137,7 +137,7 @@ func TestPushPull(t *testing.T) {
}
// create repo backend
- repo := repository.CreateTestRepo(false)
+ repo := repository.CreateGoGitTestRepo(false)
defer repository.CleanupTestRepos(repo)
backend, err := cache.NewRepoCache(repo)
@@ -209,7 +209,7 @@ func TestPushPull(t *testing.T) {
fmt.Printf("test repository exported in %f seconds\n", time.Since(start).Seconds())
- repoTwo := repository.CreateTestRepo(false)
+ repoTwo := repository.CreateGoGitTestRepo(false)
defer repository.CleanupTestRepos(repoTwo)
// create a second backend
diff --git a/bridge/github/import_test.go b/bridge/github/import_test.go
index f33b30c2..2295806f 100644
--- a/bridge/github/import_test.go
+++ b/bridge/github/import_test.go
@@ -127,7 +127,7 @@ func Test_Importer(t *testing.T) {
},
}
- repo := repository.CreateTestRepo(false)
+ repo := repository.CreateGoGitTestRepo(false)
defer repository.CleanupTestRepos(repo)
backend, err := cache.NewRepoCache(repo)
diff --git a/bridge/gitlab/export_test.go b/bridge/gitlab/export_test.go
index 96dfe1e1..58f3d63c 100644
--- a/bridge/gitlab/export_test.go
+++ b/bridge/gitlab/export_test.go
@@ -142,7 +142,7 @@ func TestPushPull(t *testing.T) {
}
// create repo backend
- repo := repository.CreateTestRepo(false)
+ repo := repository.CreateGoGitTestRepo(false)
defer repository.CleanupTestRepos(repo)
backend, err := cache.NewRepoCache(repo)
@@ -215,7 +215,7 @@ func TestPushPull(t *testing.T) {
fmt.Printf("test repository exported in %f seconds\n", time.Since(start).Seconds())
- repoTwo := repository.CreateTestRepo(false)
+ repoTwo := repository.CreateGoGitTestRepo(false)
defer repository.CleanupTestRepos(repoTwo)
// create a second backend
diff --git a/bridge/gitlab/import_test.go b/bridge/gitlab/import_test.go
index 9a936ae4..db550f08 100644
--- a/bridge/gitlab/import_test.go
+++ b/bridge/gitlab/import_test.go
@@ -76,7 +76,7 @@ func TestImport(t *testing.T) {
},
}
- repo := repository.CreateTestRepo(false)
+ repo := repository.CreateGoGitTestRepo(false)
defer repository.CleanupTestRepos(repo)
backend, err := cache.NewRepoCache(repo)