MCPcopy Index your code
hub / github.com/rilldata/rill / execGit

Function execGit

runtime/pkg/gitutil/gitcmdwrapper_test.go:390–397  ·  view source on GitHub ↗
(repoPath string, args ...string)

Source from the content-addressed store, hash-verified

388}
389
390func execGit(repoPath string, args ...string) error {
391 cmd := exec.Command("git", append([]string{"-C", repoPath}, args...)...)
392 out, err := cmd.CombinedOutput()
393 if err != nil {
394 return fmt.Errorf("git %v failed: %s: %w", args, string(out), err)
395 }
396 return nil
397}
398
399func setupTestRepository(t *testing.T) string {
400 tempDir := t.TempDir()

Callers 2

TestCommitAllFunction · 0.85
TestFetchBranchesFunction · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected