MCPcopy Create free account
hub / github.com/rilldata/rill / runGitCommand

Function runGitCommand

admin/server/github_test.go:50–56  ·  view source on GitHub ↗
(t *testing.T, dir string, args ...string)

Source from the content-addressed store, hash-verified

48}
49
50func runGitCommand(t *testing.T, dir string, args ...string) string {
51 t.Helper()
52 cmd := exec.Command("git", append([]string{"-C", dir}, args...)...)
53 output, err := cmd.CombinedOutput()
54 require.NoError(t, err, "git %v failed: %s", args, string(output))
55 return string(output)
56}

Callers 2

TestMirrorGitRepoFunction · 0.85
setupMirrorSourceRepoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected