diff --git a/pkg/commands/git_commands/commit.go b/pkg/commands/git_commands/commit.go index 501e6b06b..b876cd02d 100644 --- a/pkg/commands/git_commands/commit.go +++ b/pkg/commands/git_commands/commit.go @@ -25,7 +25,7 @@ func (self *CommitCommands) RewordLastCommit(message string) error { // ResetAuthor resets the author of the topmost commit func (self *CommitCommands) ResetAuthor() error { - return self.cmd.New("git commit --allow-empty --no-edit --amend --reset-author").Run() + return self.cmd.New("git commit --allow-empty --only --no-edit --amend --reset-author").Run() } // ResetToCommit reset to commit