MCPcopy Create free account
hub / github.com/garrytan/gstack / git

Function git

test/brain-sync.test.ts:45–48  ·  view source on GitHub ↗
(args: string[], cwd?: string)

Source from the content-addressed store, hash-verified

43}
44
45function git(args: string[], cwd?: string) {
46 const res = spawnSync('git', args, { cwd: cwd || tmpHome, encoding: 'utf-8' });
47 return { stdout: res.stdout || '', stderr: res.stderr || '', status: res.status ?? -1 };
48}
49
50beforeEach(() => {
51 tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'brain-sync-home-'));

Callers 1

brain-sync.test.tsFile · 0.70

Calls 1

spawnSyncFunction · 0.85

Tested by

no test coverage detected