Skip to content

Commit ca99366

Browse files
t3dotggclaude
andcommitted
fix(server): reuse pruneWorktrees from #7839 in removeWorktree
Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent 995718d commit ca99366

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎apps/server/src/vcs/GitVcsDriverCore.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3039,9 +3039,7 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
30393039
isMissingWorktreeStderr(result.stderr) &&
30403040
!(yield* fileSystem.exists(input.path).pipe(Effect.orElseSucceed(() => false)));
30413041
if (alreadyGone) {
3042-
yield* runGit("GitVcsDriver.removeWorktree", input.cwd, ["worktree", "prune"], {
3043-
timeoutMs: 15_000,
3044-
});
3042+
yield* pruneWorktrees({ cwd: input.cwd });
30453043
return;
30463044
}
30473045
// Raw stderr stays out of both the wire error and the log (it can carry

0 commit comments

Comments
 (0)