diff options
-rw-r--r-- | pkg/commands/commits.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/commits.go b/pkg/commands/commits.go index 4742ce448..74043518d 100644 --- a/pkg/commands/commits.go +++ b/pkg/commands/commits.go @@ -11,7 +11,7 @@ import ( // RenameCommit renames the topmost commit with the given name func (c *GitCommand) RenameCommit(name string) error { - return c.RunCommand("git commit --allow-empty --amend -m %s", c.OSCommand.Quote(name)) + return c.RunCommand("git commit --allow-empty --amend --only -m %s", c.OSCommand.Quote(name)) } // ResetToCommit reset to commit |