diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index 1f9f08f47f09efaac8f35c2832f37002ec83185d..23d9c728c058f1b4fb1aef1146089a73c3f0bb1f 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -3109,6 +3109,14 @@ impl GitPanel { let remote = match remote.await { Ok(Some(remote)) => remote, Ok(None) => { + this.update(cx, |this, cx| { + this.show_error_toast( + "push", + anyhow::anyhow!("No remote available to push to. Add a remote to be able to publish changes."), + cx, + ) + }) + .ok(); return Ok(()); } Err(e) => {