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:
Kiril Videlov 2024-06-04 10:22:08 +02:00 committed by GitHub
commit 7cd1920d80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {