MCPcopy Create free account
hub / github.com/github/gh-aw / runGitCommand

Function runGitCommand

pkg/workflow/compiler_test.go:1033–1040  ·  view source on GitHub ↗
(t *testing.T, repoDir string, args ...string)

Source from the content-addressed store, hash-verified

1031}
1032
1033func runGitCommand(t *testing.T, repoDir string, args ...string) {
1034 t.Helper()
1035
1036 cmdArgs := append([]string{"-C", repoDir}, args...)
1037 cmd := exec.Command("git", cmdArgs...)
1038 output, err := cmd.CombinedOutput()
1039 require.NoErrorf(t, err, "git %s should succeed: %s", strings.Join(args, " "), strings.TrimSpace(string(output)))
1040}
1041
1042// TestReadLockFileFromHEAD_GitStates verifies readLockFileFromHEAD behavior across
1043// multiple repository states.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected