Skip to content

Commit a15ccbb

Browse files
committed
Fix unassigned changes getting committed
1 parent 852d9a9 commit a15ccbb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/but-action/src/simple.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ fn handle_changes_simple_inner(
131131
.entry(stack_id)
132132
.or_default()
133133
.push(assignment.into());
134-
} else {
134+
} else if exclusive_stack.is_none() {
135+
// If there is an exclusive stack. We don't want to do anything with
136+
// the unassigned changes.
135137
stack_assignments
136138
.entry(default_stack_id)
137139
.or_default()

0 commit comments

Comments
 (0)