MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / createTempGitRepo

Function createTempGitRepo

packages/bumpy/test/helpers.ts:94–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93/** Create a temp directory and initialize a git repo in it */
94export async function createTempGitRepo(): Promise<string> {
95 const dir = await mkdtemp(resolve(tmpdir(), 'bumpy-test-'));
96 execFileSync('git', ['init'], { cwd: dir, stdio: 'pipe' });
97 execFileSync('git', ['commit', '--allow-empty', '-m', 'init'], { cwd: dir, stdio: 'pipe' });
98 return dir;
99}
100
101/** Remove a temp directory */
102export async function cleanupTempDir(dir: string): Promise<void> {

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…