Fix git watching on linux (#12989)

Conrad Irwin and Nathan created

Release Notes:

- N/A

Co-authored-by: Nathan <nathan@zed.dev>

Change summary

crates/worktree/src/worktree.rs | 1 +
1 file changed, 1 insertion(+)

Detailed changes

crates/worktree/src/worktree.rs 🔗

@@ -3751,6 +3751,7 @@ impl BackgroundScanner {
                         statuses,
                     });
                 }
+                self.watcher.add(child_abs_path.as_ref()).log_err();
             } else if child_name == *GITIGNORE {
                 match build_gitignore(&child_abs_path, self.fs.as_ref()).await {
                     Ok(ignore) => {