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/git2go/commit_test.go')
-rw-r--r--internal/git2go/commit_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/git2go/commit_test.go b/internal/git2go/commit_test.go
index 68916b759..ef386caaa 100644
--- a/internal/git2go/commit_test.go
+++ b/internal/git2go/commit_test.go
@@ -56,10 +56,10 @@ func TestExecutor_Commit(t *testing.T) {
cfg := testcfg.Build(t)
testhelper.ConfigureGitalyGit2GoBin(t, cfg)
- repoProto, repoPath, cleanup := gittest.InitBareRepoAt(t, cfg.Storages[0])
+ repoProto, repoPath, cleanup := gittest.InitBareRepoAt(t, cfg, cfg.Storages[0])
t.Cleanup(cleanup)
- repo := localrepo.New(git.NewExecCommandFactory(cfg), repoProto, cfg)
+ repo := localrepo.NewTestRepo(t, cfg, repoProto)
originalFile, err := repo.WriteBlob(ctx, "file", bytes.NewBufferString("original"))
require.NoError(t, err)
@@ -492,7 +492,7 @@ func TestExecutor_Commit(t *testing.T) {
Message: message,
}, getCommit(t, ctx, repo, commitID))
- gittest.RequireTree(t, repoPath, commitID.String(), step.treeEntries)
+ gittest.RequireTree(t, cfg, repoPath, commitID.String(), step.treeEntries)
parentCommit = commitID
}
})