MCPcopy Create free account
hub / github.com/anomalyco/opencode-bench / cleanupRepository

Function cleanupRepository

src/eval.ts:380–392  ·  view source on GitHub ↗
(
    cwd: string,
    logger: Logger.Instance,
  )

Source from the content-addressed store, hash-verified

378 }
379
380 async function cleanupRepository(
381 cwd: string,
382 logger: Logger.Instance,
383 ): Promise<void> {
384 try {
385 await rm(cwd, { recursive: true, force: true });
386 } catch (e) {
387 logger.error(
388 `Failed to clean up temporary repo:`,
389 e instanceof Error ? e.message : String(e),
390 );
391 }
392 }
393}

Callers 1

runOnceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected