MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / initGitRepo

Function initGitRepo

__tests__/extraction.test.ts:8815–8824  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8813 }
8814
8815 function initGitRepo(): void {
8816 const { execFileSync } = require('child_process') as typeof import('child_process');
8817 execFileSync('git', ['init'], { cwd: tempDir, stdio: 'ignore' });
8818 execFileSync('git', ['add', '-A'], { cwd: tempDir, stdio: 'ignore' });
8819 execFileSync(
8820 'git',
8821 ['-c', 'user.email=test@example.com', '-c', 'user.name=Test', 'commit', '-m', 'init'],
8822 { cwd: tempDir, stdio: 'ignore' },
8823 );
8824 }
8825
8826 it('excludes node_modules ignored only by a nested .gitignore (git path)', () => {
8827 fs.mkdirSync(path.join(tempDir, 'frontend', 'src'), { recursive: true });

Callers 1

extraction.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected