Skip to content

Commit abc50fe

Browse files
committed
fix: return native path from getDefaultBgOutputDir
The bgOutputDir is used by Node.js fs APIs (mkdir, writeFile) which need native Windows paths. POSIX conversion happens at shell command construction time via toPosixPath() in spawnBackground.
1 parent 99af592 commit abc50fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/node/runtime/WorktreeRuntime.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ export class WorktreeRuntime extends LocalBaseRuntime {
287287

288288
// Force delete the directory (use bash shell for rm -rf on Windows)
289289
// Convert to POSIX path for Git Bash compatibility on Windows
290-
using rmProc = execAsync(`rm -rf "${toPosixPath(deletedPath)}"`, { shell: getBashPath() });
290+
using rmProc = execAsync(`rm -rf "${toPosixPath(deletedPath)}"`, {
291+
shell: getBashPath(),
292+
});
291293
await rmProc.result;
292294

293295
return { success: true, deletedPath };

0 commit comments

Comments
 (0)