(dir: string)
| 8 | import { pathExists, removeFile } from "./fileSystem"; |
| 9 | |
| 10 | const isGitInstalled = (dir: string): boolean => { |
| 11 | try { |
| 12 | execSync("git --version", { cwd: dir }); |
| 13 | return true; |
| 14 | } catch (_e) { |
| 15 | return false; |
| 16 | } |
| 17 | }; |
| 18 | |
| 19 | /** @returns Whether or not the provided directory has a `.git` subdirectory in it. */ |
| 20 | const isRootGitRepo = (dir: string): Promise<boolean> => { |
no outgoing calls
no test coverage detected
searching dependent graphs…