diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index c9d66bdc31..3296df0ac8 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -932,9 +932,9 @@ impl GitPanel { &format!( "Are you sure you want to restore {}?", entry - .worktree_path + .repo_path .file_name() - .unwrap_or(entry.worktree_path.as_os_str()) + .unwrap_or(entry.repo_path.as_os_str()) .to_string_lossy() ), None,