diff options
Diffstat (limited to 'internal/gitaly/service/remote/find_remote_root_ref_test.go')
-rw-r--r-- | internal/gitaly/service/remote/find_remote_root_ref_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/gitaly/service/remote/find_remote_root_ref_test.go b/internal/gitaly/service/remote/find_remote_root_ref_test.go index e9bd8aec2..0ffe0a09a 100644 --- a/internal/gitaly/service/remote/find_remote_root_ref_test.go +++ b/internal/gitaly/service/remote/find_remote_root_ref_test.go @@ -13,10 +13,9 @@ import ( ) func TestFindRemoteRootRefSuccess(t *testing.T) { - _, repo, repoPath, client := setupRemoteService(t) + cfg, repo, repoPath, client := setupRemoteService(t) - originURL := text.ChompBytes(testhelper.MustRunCommand(t, nil, - "git", "-C", repoPath, "remote", "get-url", "origin")) + originURL := text.ChompBytes(gittest.Exec(t, cfg, "-C", repoPath, "remote", "get-url", "origin")) for _, tc := range []struct { desc string @@ -60,7 +59,7 @@ func TestFindRemoteRootRefWithUnbornRemoteHead(t *testing.T) { // point to an unborn branch because the default branch hasn't yet been created. _, clientRepoPath, cleanup := gittest.InitBareRepoAt(t, cfg, cfg.Storages[0]) defer cleanup() - testhelper.MustRunCommand(t, nil, "git", "-C", remoteRepoPath, "remote", "add", + gittest.Exec(t, cfg, "-C", remoteRepoPath, "remote", "add", "foo", "file://"+clientRepoPath) ctx, cancel := testhelper.Context() |