diff --git a/Cargo.lock b/Cargo.lock index 10bdff5..9b8034c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2240,7 +2240,7 @@ dependencies = [ [[package]] name = "gitcomet" -version = "0.1.4" +version = "0.1.5" dependencies = [ "clap", "embed-resource", @@ -2256,7 +2256,7 @@ dependencies = [ [[package]] name = "gitcomet-core" -version = "0.1.4" +version = "0.1.5" dependencies = [ "regex", "rustc-hash 2.1.1", @@ -2267,14 +2267,14 @@ dependencies = [ [[package]] name = "gitcomet-git" -version = "0.1.4" +version = "0.1.5" dependencies = [ "gitcomet-core", ] [[package]] name = "gitcomet-git-gix" -version = "0.1.4" +version = "0.1.5" dependencies = [ "gitcomet-core", "gix", @@ -2285,7 +2285,7 @@ dependencies = [ [[package]] name = "gitcomet-state" -version = "0.1.4" +version = "0.1.5" dependencies = [ "gitcomet-core", "gix", @@ -2299,14 +2299,14 @@ dependencies = [ [[package]] name = "gitcomet-ui" -version = "0.1.4" +version = "0.1.5" dependencies = [ "gitcomet-core", ] [[package]] name = "gitcomet-ui-gpui" -version = "0.1.4" +version = "0.1.5" dependencies = [ "criterion", "gitcomet-core", diff --git a/Cargo.toml b/Cargo.toml index 5314874..c90c02e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ default-members = [ ] [workspace.package] -version = "0.1.4" +version = "0.1.5" edition = "2024" license = "AGPL-3.0-only" authors = ["AutoExplore Oy "] diff --git a/crates/gitcomet-git-gix/src/repo/remotes.rs b/crates/gitcomet-git-gix/src/repo/remotes.rs index 5501cb1..0841c5b 100644 --- a/crates/gitcomet-git-gix/src/repo/remotes.rs +++ b/crates/gitcomet-git-gix/src/repo/remotes.rs @@ -428,14 +428,15 @@ impl GixRepo { fn push_force_with_optional_output_impl(&self, capture_output: bool) -> Result { if let Some(branch) = self.current_branch_name()? - && let Some(upstream) = self.branch_upstream(&branch)? { - return self.push_head_to_branch_with_optional_output_impl( - &upstream.remote, - &upstream.branch, - true, - capture_output, - ); - } + && let Some(upstream) = self.branch_upstream(&branch)? + { + return self.push_head_to_branch_with_optional_output_impl( + &upstream.remote, + &upstream.branch, + true, + capture_output, + ); + } let mut cmd = self.git_workdir_cmd(); cmd.arg("push").arg("--force-with-lease");