From fbe23b3754869c1c71c0de9909c6abcdad410a38 Mon Sep 17 00:00:00 2001 From: Jens Pfeifle Date: Sat, 7 May 2022 16:19:42 +0200 Subject: [PATCH] fixup! Add command to reset the commit author from the commits panel. --- pkg/commands/git_commands/commit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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