Skip to content

Commit af28780

Browse files
authored
Merge pull request #10482 from gitbutlerapp/kv-branch-55
fix(mark): ignore session-scoped rules when checking stack marked status
2 parents 8bf3d5c + 220c10a commit af28780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/but/src/mark/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ fn mark_branch(ctx: &mut CommandContext, branch_name: String, delete: bool) -> a
9696
pub(crate) fn stack_marked(ctx: &mut CommandContext, stack_id: StackId) -> anyhow::Result<bool> {
9797
let rules = but_rules::list_rules(ctx)?
9898
.iter()
99-
.any(|r| r.target_stack_id() == Some(stack_id.to_string()));
99+
.any(|r| r.target_stack_id() == Some(stack_id.to_string()) && r.session_id().is_none());
100100
Ok(rules)
101101
}
102102

0 commit comments

Comments
 (0)