Fix infinite loop when worktree is deleted (#39637)

Closes #39442

Release Notes:

- Fixed infinite loop when worktree is deleted

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
Andrew Farkas
2025-10-06 19:20:01 +00:00
committed by GitHub
co-authored by Conrad Irwin
parent fe9895d112
commit c80d213227
2 changed files with 18 additions and 20 deletions
+1 -1
View File
@@ -395,7 +395,7 @@ impl WorktreeStore {
// Otherwise, the FS watcher would do it on the `RootUpdated` event,
// but with a noticeable delay, so we handle it proactively.
local.update_abs_path_and_refresh(
Some(SanitizedPath::new_arc(&abs_new_path)),
SanitizedPath::new_arc(&abs_new_path),
cx,
);
Task::ready(Ok(this.root_entry().cloned()))