mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
parent
cc9ecb34a2
commit
5244751e9e
1 changed files with 13 additions and 11 deletions
|
|
@ -376,17 +376,19 @@ impl Status {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn push(&self, force: bool) {
|
fn push(&self, force: bool) {
|
||||||
if let Some(branch) = self.git_branch_name.last() {
|
if self.can_push() {
|
||||||
if force {
|
if let Some(branch) = self.git_branch_name.last() {
|
||||||
self.queue.borrow_mut().push_back(
|
if force {
|
||||||
InternalEvent::ConfirmAction(Action::ForcePush(
|
self.queue.borrow_mut().push_back(
|
||||||
branch, force,
|
InternalEvent::ConfirmAction(
|
||||||
)),
|
Action::ForcePush(branch, force),
|
||||||
);
|
),
|
||||||
} else {
|
);
|
||||||
self.queue
|
} else {
|
||||||
.borrow_mut()
|
self.queue.borrow_mut().push_back(
|
||||||
.push_back(InternalEvent::Push(branch, force));
|
InternalEvent::Push(branch, force),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue