diff options
author | Gabriel Mazetto <gabriel@gitlab.com> | 2022-02-28 22:57:46 +0300 |
---|---|---|
committer | Gabriel Mazetto <gabriel@gitlab.com> | 2022-03-15 23:35:39 +0300 |
commit | ccffd885339855f18c46deb293ea02f12fe099d4 (patch) | |
tree | d1eb75a17e8ccf6ccdad289e5992adc1df7645bf /internal/git | |
parent | 4ef97df05e54269d90fdbd4d2f59fcc29b1afcdf (diff) |
Repository: allow opting for --mirror for CreateRepositoryFromURL
Changelog: added
Diffstat (limited to 'internal/git')
-rw-r--r-- | internal/git/gittest/repo.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/git/gittest/repo.go b/internal/git/gittest/repo.go index 0f83a2535..45369493d 100644 --- a/internal/git/gittest/repo.go +++ b/internal/git/gittest/repo.go @@ -33,8 +33,11 @@ const ( // repos. GlProjectPath = "gitlab-org/gitlab-test" - // SeedGitLabTest is the path of the gitlab-test.git repository in _build/testrepos. + // SeedGitLabTest is the path of the gitlab-test.git repository in _build/testrepos SeedGitLabTest = "gitlab-test.git" + + // SeedGitLabTestMirror is the path of the gitlab-test-mirror.git repository in _build/testrepos + SeedGitLabTestMirror = "gitlab-test-mirror.git" ) // InitRepoDir creates a temporary directory for a repo, without initializing it @@ -144,6 +147,7 @@ func CreateRepository(ctx context.Context, t testing.TB, cfg config.Cfg, configs _, err := client.CreateRepositoryFromURL(ctx, &gitalypb.CreateRepositoryFromURLRequest{ Repository: repository, Url: testRepositoryPath(t, opts.Seed), + Mirror: true, }) require.NoError(t, err) } else { |