MCPcopy Create free account
hub / github.com/anus-dev/ANUS / verifyGitAvailability

Method verifyGitAvailability

packages/core/src/services/gitService.ts:38–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 verifyGitAvailability(): Promise<boolean> {
39 return new Promise((resolve) => {
40 exec('git --version', (error) => {
41 if (error) {
42 resolve(false);
43 } else {
44 resolve(true);
45 }
46 });
47 });
48 }
49
50 /**
51 * Creates a hidden git repository in the project root.

Callers 2

initializeMethod · 0.95
gitService.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected