MCPcopy Create free account
hub / github.com/continuedev/continue / isGitRepo

Function isGitRepo

extensions/cli/src/util/git.ts:45–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 * Check if current directory is a git repository
44 */
45export function isGitRepo(): boolean {
46 try {
47 execSync("git rev-parse --is-inside-work-tree", {
48 stdio: "ignore",
49 cwd: process.cwd(),
50 });
51 return true;
52 } catch {
53 return false;
54 }
55}
56
57/**
58 * Check if running in GitHub Actions

Callers 4

getRepoUrlFunction · 0.70
performFullIndexMethod · 0.50
getRepoInfoFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected