mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-28 22:03:30 +03:00
return the merge result in the case the rebase bails
This commit is contained in:
parent
af8133ef5c
commit
757a4690ca
@ -519,8 +519,14 @@ pub fn update_base_branch(
|
||||
new_target_commit.id(),
|
||||
new_target_commit.id(),
|
||||
branch.head,
|
||||
)?;
|
||||
if let Some(rebased_head_oid) = rebased_head_oid {
|
||||
);
|
||||
|
||||
// rebase failed, just do the merge
|
||||
if rebased_head_oid.is_err() {
|
||||
return result_merge(branch)
|
||||
}
|
||||
|
||||
if let Some(rebased_head_oid) = rebased_head_oid? {
|
||||
// rebase worked out, rewrite the branch head
|
||||
branch.head = rebased_head_oid;
|
||||
branch.tree = branch_merge_index_tree_oid;
|
||||
|
Loading…
Reference in New Issue
Block a user