(cwd: string)
| 192 | } |
| 193 | |
| 194 | async function checkGitRepo(cwd: string): Promise<boolean> { |
| 195 | try { |
| 196 | await execAsync("git rev-parse --git-dir", { cwd }) |
| 197 | return true |
| 198 | } catch (error) { |
| 199 | return false |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | /** |
| 204 | * Checks if Git is installed on the system by attempting to run git --version |
no outgoing calls
no test coverage detected