summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands
diff options
context:
space:
mode:
authorJens Pfeifle <jens.pfeifle@rommelag.com>2022-05-07 16:19:42 +0200
committerJesse Duffield <jessedduffield@gmail.com>2022-05-08 13:29:57 +1000
commitfbe23b3754869c1c71c0de9909c6abcdad410a38 (patch)
tree2d8dd5062ebe22134a0704066530b2fee7884c73 /pkg/commands/git_commands
parent1e08b90f67f841958501a53f097c21c4b9864769 (diff)
fixup! Add command to reset the commit author from the commits panel.
Diffstat (limited to 'pkg/commands/git_commands')
-rw-r--r--pkg/commands/git_commands/commit.go2
1 files changed, 1 insertions, 1 deletions
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