setupGitConfig sets up the git configuration for the repository at repoPath
(t *testing.T, repoPath string)
| 463 | |
| 464 | // setupGitConfig sets up the git configuration for the repository at repoPath |
| 465 | func 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 | } |
no test coverage detected