(dirPath: string)
| 63 | * Check if a directory contains a .git subdirectory. |
| 64 | */ |
| 65 | export function hasGitDirectory(dirPath: string): boolean { |
| 66 | try { |
| 67 | const gitPath = path.join(dirPath, '.git') |
| 68 | return statSync(gitPath).isDirectory() |
| 69 | } catch { |
| 70 | return false |
| 71 | } |
| 72 | } |
no outgoing calls
no test coverage detected