MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / checkGitRepo

Function checkGitRepo

src/utils/git.ts:194–201  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

192}
193
194async 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

Callers 4

searchCommitsFunction · 0.85
getCommitInfoFunction · 0.85
getWorkingStateFunction · 0.85
getGitStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected