Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git_graph: Fix loading graph hang (#52875)
Anthony Eidb9eda0f5e353
diff --git a/crates/project/src/git_store.rs b/crates/project/src/git_store.rsindex 36479fb80f5..fc1458979c0 100644--- a/crates/project/src/git_store.rs+++ b/crates/project/src/git_store.rs@@ -4705,12 +4705,11 @@ impl Repository {.commit_oid_to_index.insert(commit_data.sha, graph_data.commit_data.len());graph_data.commit_data.push(commit_data);-- cx.emit(RepositoryEvent::GraphEvent(- graph_data_key.clone(),- GitGraphEvent::CountUpdated(graph_data.commit_data.len()),- ));}+ cx.emit(RepositoryEvent::GraphEvent(+ graph_data_key.clone(),+ GitGraphEvent::CountUpdated(graph_data.commit_data.len()),+ ));});match &graph_data {