diff options
Diffstat (limited to 'internal/git/stats/git_test.go')
-rw-r--r-- | internal/git/stats/git_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/git/stats/git_test.go b/internal/git/stats/git_test.go index bd9c76aa4..5056e84ba 100644 --- a/internal/git/stats/git_test.go +++ b/internal/git/stats/git_test.go @@ -23,10 +23,10 @@ import ( func TestLogObjectInfo(t *testing.T) { cfg := testcfg.Build(t) - repo1, repoPath1, cleanup1 := gittest.CloneRepoAtStorage(t, cfg.Storages[0], t.Name()+"-1") + repo1, repoPath1, cleanup1 := gittest.CloneRepoAtStorage(t, cfg, cfg.Storages[0], t.Name()+"-1") defer cleanup1() - repo2, repoPath2, cleanup2 := gittest.CloneRepoAtStorage(t, cfg.Storages[0], t.Name()+"-2") + repo2, repoPath2, cleanup2 := gittest.CloneRepoAtStorage(t, cfg, cfg.Storages[0], t.Name()+"-2") defer cleanup2() ctx, cancel := testhelper.Context() @@ -63,7 +63,7 @@ func TestLogObjectInfo(t *testing.T) { defer func() { require.NoError(t, os.RemoveAll(tmpDir)) }() // clone existing local repo with two alternates - testhelper.MustRunCommand(t, nil, "git", "clone", "--shared", repoPath1, "--reference", repoPath1, "--reference", repoPath2, tmpDir) + gittest.Exec(t, cfg, "clone", "--shared", repoPath1, "--reference", repoPath1, "--reference", repoPath2, tmpDir) logBuffer.Reset() LogObjectsInfo(testCtx, gitCmdFactory, &gitalypb.Repository{ |