Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions crates/git_ui/src/git_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3232,7 +3232,7 @@ impl GitPanel {
/// worktree to the `safe.directory` config, ensuring that, even if the user
/// that's running the application is not the owner of `.git/`, it can still
/// read the repository's contents.
fn add_safe_directory(&mut self, window: &mut Window, cx: &mut Context<Self>) {
fn add_safe_directory(&mut self, _window: &mut Window, cx: &mut Context<Self>) {
let Some(active_repository) = &self.active_repository else {
return;
};
Expand All @@ -3250,12 +3250,10 @@ impl GitPanel {
path_arg,
];

cx.spawn_in(window, async move |git_panel, cx| {
git_panel.update(cx, |git_panel, cx| {
git_panel.project.read(cx).git_config(path, args, cx)
})
})
.detach();
self.project
.read(cx)
.git_config(path, args, cx)
.detach_and_log_err(cx);
}
}

Expand Down
Loading