Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Mazetto <gabriel@gitlab.com>2022-02-28 22:57:46 +0300
committerGabriel Mazetto <gabriel@gitlab.com>2022-03-15 23:35:39 +0300
commitccffd885339855f18c46deb293ea02f12fe099d4 (patch)
treed1eb75a17e8ccf6ccdad289e5992adc1df7645bf /internal/git
parent4ef97df05e54269d90fdbd4d2f59fcc29b1afcdf (diff)
Repository: allow opting for --mirror for CreateRepositoryFromURL
Changelog: added
Diffstat (limited to 'internal/git')
-rw-r--r--internal/git/gittest/repo.go6
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 {