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

Function gitInit

test/git-sandbox.test.ts:8–14  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

6import { GitSandbox } from '../src/agent/git-sandbox.js';
7
8function gitInit(dir: string) {
9 const run = (args: string[]) => execFileSync('git', ['-C', dir, ...args], { stdio: 'pipe' });
10 run(['init', '-q']);
11 run(['config', 'user.email', 't@t.com']);
12 run(['config', 'user.name', 't']);
13 run(['config', 'commit.gpgsign', 'false']);
14}
15
16describe('GitSandbox', () => {
17 let dir: string;

Callers 1

Calls 1

runFunction · 0.70

Tested by

no test coverage detected