Skip to content

Commit b2bc486

Browse files
committed
ButlerAction uncommitted changes should not stash
GB will handle it
1 parent f50112f commit b2bc486

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/but-action/src/simple.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ use crate::{Outcome, default_target_setting_if_none};
2323
/// - Create an oplog snaposhot entry _before_ the automation is executed
2424
/// - Create an oplog snapshot entry _after_ the automation is executed
2525
/// - Create a separate persisted entry recording the request context and IDs for the two oplog snapshots
26-
///
27-
/// TODO:
28-
/// - Handle the case of target branch not being configured
2926
pub fn handle_changes(
3027
ctx: &mut CommandContext,
3128
change_summary: &str,
@@ -85,7 +82,7 @@ fn handle_changes_simple_inner(
8582
}
8683
OperatingMode::OutsideWorkspace(_) => {
8784
let default_target = vb_state.get_default_target()?;
88-
gitbutler_branch_actions::set_base_branch(ctx, &default_target.branch, true, perm)?;
85+
gitbutler_branch_actions::set_base_branch(ctx, &default_target.branch, false, perm)?;
8986
}
9087
}
9188

0 commit comments

Comments
 (0)