Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
remote: Fix incorrect default repository selection when using remote (#41698)
ᴀᴍᴛᴏᴀᴇʀfc3e503cfe84
diff --git a/crates/project/src/git_store.rs b/crates/project/src/git_store.rsindex 6c6603941b6..d5350125b0a 100644--- a/crates/project/src/git_store.rs+++ b/crates/project/src/git_store.rs@@ -1268,6 +1268,12 @@ impl GitStore {git_store,cx,);+ if let Some(updates_tx) = updates_tx.as_ref() {+ // trigger an empty `UpdateRepository` to ensure remote active_repo_id is set correctly+ updates_tx+ .unbounded_send(DownstreamUpdate::UpdateRepository(repo.snapshot()))+ .ok();+ }repo.schedule_scan(updates_tx.clone(), cx);repo});