(args, cwd)
| 31 | } |
| 32 | |
| 33 | function git(args, cwd) { |
| 34 | const r = spawnSync("git", args, { cwd, encoding: "utf8" }); |
| 35 | if (r.status !== 0) { |
| 36 | throw new Error(`git ${args.join(" ")} failed: ${r.stderr || r.stdout}`); |
| 37 | } |
| 38 | return r.stdout; |
| 39 | } |
| 40 | |
| 41 | function initRepo(dir, defaultBranch) { |
| 42 | git(["init", "-q", "-b", defaultBranch], dir); |
no outgoing calls
no test coverage detected