(dir: string)
| 18 | |
| 19 | /** @returns Whether or not the provided directory has a `.git` subdirectory in it. */ |
| 20 | const isRootGitRepo = (dir: string): Promise<boolean> => { |
| 21 | return pathExists(path.join(dir, ".git")); |
| 22 | }; |
| 23 | |
| 24 | /** @returns Whether or not this directory or a parent directory has a `.git` directory. */ |
| 25 | const isInsideGitRepo = async (dir: string): Promise<boolean> => { |
no test coverage detected
searching dependent graphs…