Skip to content

Commit

Permalink
rebase: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
torquestomp committed Oct 30, 2024
1 parent 30ab71d commit 0fa7df9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/src/commands/rebase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ fn rebase_revisions(
settings: &UserSettings,
workspace_command: &mut WorkspaceCommandHelper,
revisions: &[RevisionArg],
rebase_destionation: &RebaseDestinationArgs,
rebase_destination: &RebaseDestinationArgs,
rebase_options: &RebaseOptions,
) -> Result<(), CommandError> {
let target_commits: Vec<_> = workspace_command
Expand All @@ -309,8 +309,8 @@ fn rebase_revisions(
workspace_command.check_rewritable(target_commits.iter().ids())?;

let (new_parents, new_children) =
compute_rebase_destination(ui, workspace_command, rebase_destionation)?;
if rebase_destionation.destination.is_some() && new_children.is_empty() {
compute_rebase_destination(ui, workspace_command, rebase_destination)?;
if rebase_destination.destination.is_some() && new_children.is_empty() {
for commit in &target_commits {
if new_parents.contains(commit) {
return Err(user_error(format!(
Expand Down

0 comments on commit 0fa7df9

Please sign in to comment.