Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix watching of Git repo in presence of scanner restarts (#37052)

Michael Sloan8af212e7853f
diff --git a/crates/worktree/src/worktree.rs b/crates/worktree/src/worktree.rs
index cf61ee26696..845af538021 100644
--- a/crates/worktree/src/worktree.rs
+++ b/crates/worktree/src/worktree.rs
@@ -3151,16 +3151,6 @@ impl BackgroundScannerState {
.work_directory_abs_path(&work_directory)
.log_err()?;
- if self
- .snapshot
- .git_repositories
- .get(&work_dir_entry.id)
- .is_some()
- {
- log::trace!("existing git repository for {work_directory:?}");
- return None;
- }
-
let dot_git_abs_path: Arc<Path> = self
.snapshot
.abs_path