Skip to content

Commit 1dc94a0

Browse files
Merge pull request #10558 from gitbutlerapp/fix-uncommited-changes-getting-commited
Fix unassigned changes getting committed
2 parents 852d9a9 + a15ccbb commit 1dc94a0

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)