MCPcopy Create free account
hub / github.com/garrytan/gstack / git

Function git

test/gstack-version-bump.test.ts:108–108  ·  view source on GitHub ↗
(...a: string[])

Source from the content-addressed store, hash-verified

106
107 // Build a tiny repo with an "origin/main" carrying VERSION=1.0.0.0.
108 const git = (...a: string[]) => execFileSync('git', a, { cwd: dir, stdio: 'pipe' });
109 fs.writeFileSync(path.join(dir, 'VERSION'), '1.0.0.0\n');
110 fs.writeFileSync(path.join(dir, 'package.json'), JSON.stringify({ name: 'x', version: '1.0.0.0' }, null, 2) + '\n');
111 git('init', '-q', '-b', 'main');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected