mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 14:31:30 +03:00
Merge pull request #3986 from gitbutlerapp/apply-branch-fix
when the branch being applied has a merge commit do merge only
This commit is contained in:
commit
7cd1920d80
@ -361,16 +361,9 @@ pub fn apply_branch(
|
||||
last_rebase_head = oid;
|
||||
}
|
||||
}
|
||||
Err(err)
|
||||
if err
|
||||
.downcast_ref()
|
||||
.map_or(false, |marker: &Marker| *marker == Marker::ProjectConflict) =>
|
||||
{
|
||||
Err(_) => {
|
||||
rebase_success = false;
|
||||
}
|
||||
Err(err) => {
|
||||
return Err(err).context("failed to apply branch");
|
||||
}
|
||||
}
|
||||
|
||||
if rebase_success {
|
||||
|
Loading…
Reference in New Issue
Block a user