(dir: string)
| 20 | } from '../src/sync/git-hooks'; |
| 21 | |
| 22 | function gitInit(dir: string): void { |
| 23 | execFileSync('git', ['init', '-q'], { cwd: dir, stdio: 'ignore' }); |
| 24 | } |
| 25 | |
| 26 | function isExecutable(file: string): boolean { |
| 27 | if (process.platform === 'win32') return true; // mode bits not meaningful |