setupGitConfig sets up the git configuration for the repository at repoPath.
(t *testing.T, repoPath string)
| 697 | |
| 698 | // setupGitConfig sets up the git configuration for the repository at repoPath. |
| 699 | func setupGitConfig(t *testing.T, repoPath string) { |
| 700 | // Set user name and email for the git repository |
| 701 | cmd := exec.Command("git", "-C", repoPath, "config", "user.name", "Test User") |
| 702 | err := cmd.Run() |
| 703 | require.NoError(t, err, "failed to set user name in git config") |
| 704 | |
| 705 | cmd = exec.Command("git", "-C", repoPath, "config", "user.email", "test@rilldata.com") |
| 706 | err = cmd.Run() |
| 707 | require.NoError(t, err, "failed to set user email in git config") |
| 708 | } |
| 709 | |
| 710 | // getCurrentBranch gets the current branch name for the repository at repoPath |
| 711 | func getCurrentBranch(t *testing.T, repoPath string) string { |
no test coverage detected