(projectPath: string)
| 9 | import { WorktreeManager } from "./WorktreeManager"; |
| 10 | |
| 11 | function initGitRepo(projectPath: string): void { |
| 12 | execSync("git init -b main", { cwd: projectPath, stdio: "ignore" }); |
| 13 | execSync('git config user.email "test@example.com"', { cwd: projectPath, stdio: "ignore" }); |
| 14 | execSync('git config user.name "test"', { cwd: projectPath, stdio: "ignore" }); |
| 15 | // Ensure tests don't hang when developers have global commit signing enabled. |
| 16 | execSync("git config commit.gpgsign false", { cwd: projectPath, stdio: "ignore" }); |
| 17 | execSync("bash -lc 'echo \"hello\" > README.md'", { cwd: projectPath, stdio: "ignore" }); |
| 18 | execSync("git add README.md", { cwd: projectPath, stdio: "ignore" }); |
| 19 | execSync('git commit -m "init"', { cwd: projectPath, stdio: "ignore" }); |
| 20 | } |
| 21 | |
| 22 | function createNullInitLogger(): InitLogger { |
| 23 | return { |
no outgoing calls
no test coverage detected