(args, opts = {})
| 11 | } |
| 12 | |
| 13 | function git(args, opts = {}) { |
| 14 | const result = spawnSync('git', args, { encoding: 'utf8', ...opts }); |
| 15 | if (result.status !== 0) { |
| 16 | throw new Error(result.stderr || result.stdout || `git ${args.join(' ')} failed`); |
| 17 | } |
| 18 | return result.stdout; |
| 19 | } |
| 20 | |
| 21 | const root = git(['rev-parse', '--show-toplevel']).trim(); |
| 22 |
no outgoing calls
no test coverage detected