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

Function gitSetup

test/git-tools.test.ts:26–31  ·  view source on GitHub ↗

Run a git command synchronously in the given dir for test setup.

(cwd: string, args: string[])

Source from the content-addressed store, hash-verified

24
25/** Run a git command synchronously in the given dir for test setup. */
26function gitSetup(cwd: string, args: string[]): void {
27 const r = spawnSync('git', args, { cwd, encoding: 'utf-8' });
28 if (r.status !== 0) {
29 throw new Error(`git ${args.join(' ')} failed: ${r.stderr || r.stdout}`);
30 }
31}
32
33describe('Git tools — using a real temp repo', () => {
34 let repo: string;

Callers 1

git-tools.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected