diff options
Diffstat (limited to 'internal/gitaly/service/commit/count_commits_test.go')
-rw-r--r-- | internal/gitaly/service/commit/count_commits_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/gitaly/service/commit/count_commits_test.go b/internal/gitaly/service/commit/count_commits_test.go index 8b23acfc6..c0c3d2f1d 100644 --- a/internal/gitaly/service/commit/count_commits_test.go +++ b/internal/gitaly/service/commit/count_commits_test.go @@ -23,16 +23,16 @@ func TestSuccessfulCountCommitsRequest(t *testing.T) { committerEmail := "scrooge@mcduck.com" for i := 0; i < 5; i++ { - testhelper.MustRunCommand(t, nil, "git", "-C", repo2Path, + gittest.Exec(t, cfg, "-C", repo2Path, "-c", fmt.Sprintf("user.name=%s", committerName), "-c", fmt.Sprintf("user.email=%s", committerEmail), "commit", "--allow-empty", "-m", "Empty commit") } - testhelper.MustRunCommand(t, nil, "git", "-C", repo2Path, "checkout", "-b", "another-branch") + gittest.Exec(t, cfg, "-C", repo2Path, "checkout", "-b", "another-branch") for i := 0; i < 3; i++ { - testhelper.MustRunCommand(t, nil, "git", "-C", repo2Path, + gittest.Exec(t, cfg, "-C", repo2Path, "-c", fmt.Sprintf("user.name=%s", committerName), "-c", fmt.Sprintf("user.email=%s", committerEmail), "commit", "--allow-empty", "-m", "Empty commit") |