diff options
Diffstat (limited to 'internal/gitaly/service/operations')
-rw-r--r-- | internal/gitaly/service/operations/commit_files_test.go | 10 | ||||
-rw-r--r-- | internal/gitaly/service/operations/revert_test.go | 2 | ||||
-rw-r--r-- | internal/gitaly/service/operations/submodules_test.go | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/internal/gitaly/service/operations/commit_files_test.go b/internal/gitaly/service/operations/commit_files_test.go index c769d7460..27c06e124 100644 --- a/internal/gitaly/service/operations/commit_files_test.go +++ b/internal/gitaly/service/operations/commit_files_test.go @@ -46,7 +46,7 @@ func TestUserCommitFiles(t *testing.T) { // repository there on every test run. This allows us to use deterministic // paths in the tests. - startRepo, startRepoPath, cleanup := gittest.InitBareRepoAt(t, cfg.Storages[0]) + startRepo, startRepoPath, cleanup := gittest.InitBareRepoAt(t, cfg, cfg.Storages[0]) t.Cleanup(cleanup) pathToStorage := strings.TrimSuffix(startRepoPath, startRepo.RelativePath) @@ -941,7 +941,7 @@ func TestUserCommitFilesStableCommitID(t *testing.T) { ctx, cfg, _, _, client := setupOperationsService(t, ctx) - repoProto, repoPath, cleanup := gittest.InitBareRepoAt(t, cfg.Storages[0]) + repoProto, repoPath, cleanup := gittest.InitBareRepoAt(t, cfg, cfg.Storages[0]) defer cleanup() repo := localrepo.New(git.NewExecCommandFactory(cfg), repoProto, cfg) @@ -1000,7 +1000,7 @@ func TestSuccessfulUserCommitFilesRequest(t *testing.T) { ctx, cfg, repo, repoPath, client := setupOperationsService(t, ctx) - newRepo, newRepoPath, newRepoCleanupFn := gittest.InitBareRepoAt(t, cfg.Storages[0]) + newRepo, newRepoPath, newRepoCleanupFn := gittest.InitBareRepoAt(t, cfg, cfg.Storages[0]) defer newRepoCleanupFn() filePath := "héllo/wörld" @@ -1254,7 +1254,7 @@ func testSuccessfulUserCommitFilesRemoteRepositoryRequest(setHeader func(header repo := localrepo.New(gitCmdFactory, repoProto, cfg) - newRepoProto, _, newRepoCleanupFn := gittest.InitBareRepoAt(t, cfg.Storages[0]) + newRepoProto, _, newRepoCleanupFn := gittest.InitBareRepoAt(t, cfg, cfg.Storages[0]) defer newRepoCleanupFn() newRepo := localrepo.New(gitCmdFactory, newRepoProto, cfg) @@ -1291,7 +1291,7 @@ func TestSuccessfulUserCommitFilesRequestWithSpecialCharactersInSignature(t *tes ctx, cfg, _, _, client := setupOperationsService(t, ctx) - repoProto, _, cleanup := gittest.InitBareRepoAt(t, cfg.Storages[0]) + repoProto, _, cleanup := gittest.InitBareRepoAt(t, cfg, cfg.Storages[0]) defer cleanup() repo := localrepo.New(git.NewExecCommandFactory(cfg), repoProto, cfg) diff --git a/internal/gitaly/service/operations/revert_test.go b/internal/gitaly/service/operations/revert_test.go index 84266ce0f..1f1458b27 100644 --- a/internal/gitaly/service/operations/revert_test.go +++ b/internal/gitaly/service/operations/revert_test.go @@ -246,7 +246,7 @@ func testServerUserRevertSuccessfulIntoNewRepo(t *testing.T, ctx context.Context masterHeadCommit, err := startRepo.ReadCommit(ctx, "master") require.NoError(t, err) - repoProto, _, cleanup := gittest.InitBareRepoAt(t, cfg.Storages[0]) + repoProto, _, cleanup := gittest.InitBareRepoAt(t, cfg, cfg.Storages[0]) defer cleanup() repo := localrepo.New(gitCmdFactory, repoProto, cfg) diff --git a/internal/gitaly/service/operations/submodules_test.go b/internal/gitaly/service/operations/submodules_test.go index 8142f2183..706245a04 100644 --- a/internal/gitaly/service/operations/submodules_test.go +++ b/internal/gitaly/service/operations/submodules_test.go @@ -370,7 +370,7 @@ func testFailedUserUpdateSubmoduleRequestDueToRepositoryEmpty(t *testing.T, cfg func testFailedUserUpdateSubmoduleRequestDueToRepositoryEmptyFeatured(t *testing.T, ctx context.Context, cfg config.Cfg, rubySrv *rubyserver.Server) { ctx, _, _, _, client := setupOperationsServiceWithRuby(t, ctx, cfg, rubySrv) - repo, _, cleanup := gittest.InitRepoWithWorktreeAtStorage(t, cfg.Storages[0]) + repo, _, cleanup := gittest.InitRepoWithWorktreeAtStorage(t, cfg, cfg.Storages[0]) t.Cleanup(cleanup) request := &gitalypb.UserUpdateSubmoduleRequest{ |