(cwd: string, args: string[])
| 20 | } |
| 21 | |
| 22 | function gitSetup(cwd: string, args: string[]): void { |
| 23 | const r = spawnSync('git', args, { cwd, encoding: 'utf-8' }); |
| 24 | if (r.status !== 0) throw new Error(`git ${args.join(' ')} failed: ${r.stderr || r.stdout}`); |
| 25 | } |
| 26 | |
| 27 | function writeAndCommit(repo: string, file: string, content: string, msg: string): void { |
| 28 | const fp = path.join(repo, file); |
no outgoing calls
no test coverage detected