Merge remote-tracking branch 'origin/dev' into sqlite2

This commit is contained in:
Dax Raad
2026-02-07 01:11:15 -05:00
363 changed files with 25929 additions and 8534 deletions
+6 -1
View File
@@ -413,8 +413,13 @@ export namespace Worktree {
if (key === directory) return item
}
})()
if (!entry?.path) {
throw new RemoveFailedError({ message: "Worktree not found" })
const directoryExists = await exists(directory)
if (directoryExists) {
await fs.rm(directory, { recursive: true, force: true })
}
return true
}
const removed = await $`git worktree remove --force ${entry.path}`.quiet().nothrow().cwd(Instance.worktree)