MCPcopy Create free account
hub / github.com/codeaashu/claude-code / checkIsInGitRepo

Function checkIsInGitRepo

src/utils/background/remote/preconditions.ts:59–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 * Distinct from checkHasGitRemote — a local-only repo passes this but not that.
58 */
59export function checkIsInGitRepo(): boolean {
60 return findGitRoot(getCwd()) !== null
61}
62
63/**
64 * Checks if current repository has a GitHub remote configured.

Calls 1

getCwdFunction · 0.85

Tested by

no test coverage detected