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

Function gitSetup

test/snapshot.test.ts:8–11  ·  view source on GitHub ↗
(cwd: string, args: string[])

Source from the content-addressed store, hash-verified

6import { isDestructiveBash, SnapshotService } from '../src/safety/snapshot.js';
7
8function gitSetup(cwd: string, args: string[]): void {
9 const r = spawnSync('git', args, { cwd, encoding: 'utf-8' });
10 if (r.status !== 0) throw new Error(`git ${args.join(' ')}: ${r.stderr || r.stdout}`);
11}
12
13describe('isDestructiveBash', () => {
14 it('flags rm -rf', () => {

Callers 1

snapshot.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected