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:
Diffstat (limited to 'internal/git/gittest/repo.go')
-rw-r--r--internal/git/gittest/repo.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/internal/git/gittest/repo.go b/internal/git/gittest/repo.go
index 771549c6c..6821a38fb 100644
--- a/internal/git/gittest/repo.go
+++ b/internal/git/gittest/repo.go
@@ -155,15 +155,10 @@ func CloneRepo(t testing.TB, cfg config.Cfg, storage config.Storage, opts ...Clo
return repo, absolutePath
}
-// BundleTestRepo creates a bundle of a local test repo. E.g.
-// `gitlab-test.git`. `patterns` define the bundle contents as per
-// `git-rev-list-args`. If there are no patterns then `--all` is assumed.
-func BundleTestRepo(t testing.TB, cfg config.Cfg, sourceRepo, bundlePath string, patterns ...string) {
- if len(patterns) == 0 {
- patterns = []string{"--all"}
- }
+// BundleTestRepo creates a bundle of a local test repo. E.g. `gitlab-test.git`
+func BundleTestRepo(t testing.TB, cfg config.Cfg, sourceRepo, bundlePath string) {
repoPath := testRepositoryPath(t, sourceRepo)
- Exec(t, cfg, append([]string{"-C", repoPath, "bundle", "create", bundlePath}, patterns...)...)
+ Exec(t, cfg, "-C", repoPath, "bundle", "create", bundlePath, "--all")
}
// testRepositoryPath returns the absolute path of local 'gitlab-org/gitlab-test.git' clone.