Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix blank git diff view on Windows when working in a subfolder (#52234)
Hitesh Rohiraf8295ffaca89
diff --git a/crates/project/src/git_store.rs b/crates/project/src/git_store.rsindex d35a13e7df3..0d4051be7e5 100644--- a/crates/project/src/git_store.rs+++ b/crates/project/src/git_store.rs@@ -4024,10 +4024,12 @@ impl RepositorySnapshot {}fn repo_path_to_abs_path(&self, repo_path: &RepoPath) -> PathBuf {- self.path_style- .join(&self.work_directory_abs_path, repo_path.as_std_path())- .unwrap()- .into()+ let repo_path = repo_path.display(self.path_style);+ PathBuf::from(+ self.path_style+ .join(&self.work_directory_abs_path, repo_path.as_ref())+ .unwrap(),+ )}#[inline]