git init + commit everything currently in `dir` as one repo.
(dir: string)
| 35 | |
| 36 | /** git init + commit everything currently in `dir` as one repo. */ |
| 37 | function makeRepo(dir: string): void { |
| 38 | git(dir, 'init', '-q'); |
| 39 | git(dir, 'add', '-A'); |
| 40 | git(dir, '-c', 'user.email=t@t', '-c', 'user.name=t', 'commit', '-qm', 'init', '--allow-empty'); |
| 41 | } |
| 42 | |
| 43 | function write(file: string, content: string): void { |
| 44 | fs.mkdirSync(path.dirname(file), { recursive: true }); |
no test coverage detected