MCPcopy
hub / github.com/rpamis/comet / initGitRepo

Function initGitRepo

scripts/context-execution-benchmark.mjs:1901–1907  ·  view source on GitHub ↗
(cwd)

Source from the content-addressed store, hash-verified

1899}
1900
1901async function initGitRepo(cwd) {
1902 try {
1903 await spawnCapture('git', ['init'], { cwd, allowFailure: true });
1904 await spawnCapture('git', ['add', '-A'], { cwd, allowFailure: true });
1905 await spawnCapture('git', ['commit', '-m', 'initial fixture'], { cwd, allowFailure: true });
1906 } catch { /* non-fatal */ }
1907}
1908
1909async function main() {
1910 try {

Callers 1

runExecutionBenchmarkFunction · 0.85

Calls 1

spawnCaptureFunction · 0.90

Tested by

no test coverage detected