gitWorktreeAdd runs `git worktree add -b ` against repoDir.
(t *testing.T, repoDir, wtPath, branch string)
| 172 | |
| 173 | // gitWorktreeAdd runs `git worktree add -b <branch> <path>` against repoDir. |
| 174 | func gitWorktreeAdd(t *testing.T, repoDir, wtPath, branch string) { |
| 175 | t.Helper() |
| 176 | cmd := exec.Command("git", "worktree", "add", "-b", branch, wtPath) |
| 177 | cmd.Dir = repoDir |
| 178 | out, err := cmd.CombinedOutput() |
| 179 | require.NoError(t, err, "git worktree add failed: %s", string(out)) |
| 180 | } |
no outgoing calls
no test coverage detected