MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / isGitRepo

Function isGitRepo

src/tools/git/git-runner.ts:110–113  ·  view source on GitHub ↗
(cwd: string, signal?: AbortSignal)

Source from the content-addressed store, hash-verified

108
109/** Quick check: is this directory inside a git repo? */
110export async function isGitRepo(cwd: string, signal?: AbortSignal): Promise<boolean> {
111 const r = await git(['rev-parse', '--is-inside-work-tree'], { cwd, signal, timeoutMs: 5000 });
112 return r.exitCode === 0 && r.stdout.trim() === 'true';
113}

Callers 9

executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
beginMethod · 0.85
recoverOrphanedSandboxFunction · 0.85

Calls 1

gitFunction · 0.70

Tested by

no test coverage detected