(file: string)
| 24 | } |
| 25 | |
| 26 | function isExecutable(file: string): boolean { |
| 27 | if (process.platform === 'win32') return true; // mode bits not meaningful |
| 28 | return (fs.statSync(file).mode & 0o111) !== 0; |
| 29 | } |
| 30 | |
| 31 | describe('git sync hooks', () => { |
| 32 | let repo: string; |