MCPcopy Create free account
hub / github.com/Noumena-Network/code / tearDown

Function tearDown

src/utils/worktree.ts:353–360  ·  view source on GitHub ↗
(msg: string)

Source from the content-addressed store, hash-verified

351 // fast-resume (rev-parse HEAD) would succeed and present a broken worktree
352 // as "resumed". Tear it down before propagating the error.
353 const tearDown = async (msg: string): Promise<never> => {
354 await execFileNoThrowWithCwd(
355 gitExe(),
356 ['worktree', 'remove', '--force', worktreePath],
357 { cwd: repoRoot },
358 )
359 throw new Error(msg)
360 }
361 const { code: sparseCode, stderr: sparseErr } =
362 await execFileNoThrowWithCwd(
363 gitExe(),

Callers 1

getOrCreateWorktreeFunction · 0.85

Calls 1

execFileNoThrowWithCwdFunction · 0.85

Tested by

no test coverage detected