MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / tearDown

Function tearDown

source code/utils/worktree.ts:343–350  ·  view source on GitHub ↗
(msg: string)

Source from the content-addressed store, hash-verified

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

Callers 1

getOrCreateWorktreeFunction · 0.85

Calls 1

execFileNoThrowWithCwdFunction · 0.85

Tested by

no test coverage detected