MCPcopy
hub / github.com/codeaashu/claude-code / tearDown

Function tearDown

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

Source from the content-addressed store, hash-verified

339 // fast-resume (rev-parse HEAD) would succeed and present a broken worktree
340 // as "resumed". Tear it down before propagating the error.
341 const tearDown = async (msg: string): Promise<never> => {
342 await execFileNoThrowWithCwd(
343 gitExe(),
344 ['worktree', 'remove', '--force', worktreePath],
345 { cwd: repoRoot },
346 )
347 throw new Error(msg)
348 }
349 const { code: sparseCode, stderr: sparseErr } =
350 await execFileNoThrowWithCwd(
351 gitExe(),

Callers 1

getOrCreateWorktreeFunction · 0.85

Calls 1

execFileNoThrowWithCwdFunction · 0.85

Tested by

no test coverage detected