(projectPath: string)
| 10 | import { MultiProjectRuntime } from "./multiProjectRuntime"; |
| 11 | |
| 12 | async function initGitRepo(projectPath: string): Promise<void> { |
| 13 | await fs.mkdir(projectPath, { recursive: true }); |
| 14 | execFileSync("git", ["init", "-b", "main"], { cwd: projectPath, stdio: "ignore" }); |
| 15 | execFileSync("git", ["config", "user.email", "test@example.com"], { |
| 16 | cwd: projectPath, |
| 17 | stdio: "ignore", |
| 18 | }); |
| 19 | execFileSync("git", ["config", "user.name", "test"], { cwd: projectPath, stdio: "ignore" }); |
| 20 | execFileSync("git", ["config", "commit.gpgsign", "false"], { cwd: projectPath, stdio: "ignore" }); |
| 21 | |
| 22 | await fs.writeFile(path.join(projectPath, "README.md"), "hello\n", "utf8"); |
| 23 | execFileSync("git", ["add", "README.md"], { cwd: projectPath, stdio: "ignore" }); |
| 24 | execFileSync("git", ["commit", "-m", "init"], { cwd: projectPath, stdio: "ignore" }); |
| 25 | } |
| 26 | |
| 27 | async function createWorkspaceWorktree( |
| 28 | projectPath: string, |
no test coverage detected