mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-04 09:03:21 +01:00
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:
1 parent
359160c8b1
commit
0149de4b54
13 files changed
+90
-84
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user