git: Fix panic in git2 due to empty repo paths (#42304)

Fixes ZED-1VR

Release Notes:

- Fixed sporadic panic in git features
This commit is contained in:
Lukas Wirth authored and GitHub committed 2025-11-10 09:27:51 +00:00
1 parent 359160c8b1
commit 0149de4b54
13 files changed
+90 -84

No files matched your search

+1 -1
View File
@@ -266,7 +266,7 @@ impl language::File for GitBlob {
}
fn path(&self) -> &Arc<RelPath> {
&self.path.0
self.path.as_ref()
}
fn full_path(&self, _: &App) -> PathBuf {