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

Function setupGitConfig

runtime/pkg/gitutil/gitcmdwrapper_test.go:465–474  ·  view source on GitHub ↗

setupGitConfig sets up the git configuration for the repository at repoPath

(t *testing.T, repoPath string)

Source from the content-addressed store, hash-verified

463
464// setupGitConfig sets up the git configuration for the repository at repoPath
465func setupGitConfig(t *testing.T, repoPath string) {
466 // Set user name and email for the git repository
467 cmd := exec.Command("git", "-C", repoPath, "config", "user.name", "Test User")
468 err := cmd.Run()
469 require.NoError(t, err, "failed to set user name in git config")
470
471 cmd = exec.Command("git", "-C", repoPath, "config", "user.email", "test@rilldata.com")
472 err = cmd.Run()
473 require.NoError(t, err, "failed to set user email in git config")
474}

Callers 3

TestHashFunction · 0.70
setupRemoteAndCloneFunction · 0.70
setupTestRepositoryFunction · 0.70

Calls 1

RunMethod · 0.45

Tested by

no test coverage detected