diff --git a/pkg/commands/git_commands/patch.go b/pkg/commands/git_commands/patch.go index 0b1c3db01..c43dc0561 100644 --- a/pkg/commands/git_commands/patch.go +++ b/pkg/commands/git_commands/patch.go @@ -162,7 +162,7 @@ func (self *PatchCommands) MovePatchToSelectedCommit(commits []*models.Commit, s self.os.LogCommand(logTodoChanges(changes), false) err := self.rebase.PrepareInteractiveRebaseCommand(PrepareInteractiveRebaseCommandOpts{ - baseHashOrRoot: commits[baseIndex].Hash(), + baseHashOrRoot: getBaseHashOrRoot(commits, baseIndex), overrideEditor: true, instruction: daemon.NewChangeTodoActionsInstruction(changes), }).Run()