no error is branch is already applied

This commit is contained in:
Nikita Galaiko 2023-09-18 13:59:50 +02:00 committed by GitButler
parent cb37cbadfb
commit 49d5295911

View File

@ -2092,8 +2092,9 @@ pub fn is_virtual_branch_mergeable(
let branch = branch_reader
.read(branch_id)
.context("failed to read branch")?;
if branch.applied {
bail!("branch {} is applied", branch.name);
return Ok(true);
}
let default_target = get_default_target(&current_session_reader)