@@ -23,7 +23,7 @@ func NewCommitCommands(gitCommon *GitCommon) *CommitCommands {
2323// ResetAuthor resets the author of the topmost commit
2424func (self * CommitCommands ) ResetAuthor () error {
2525 cmdArgs := NewGitCmd ("commit" ).
26- Arg ("--allow-empty" , "--only" , "--no-edit" , "--amend" , "--reset-author" ).
26+ Arg ("--allow-empty" , "--allow-empty-message" , "-- only" , "--no-edit" , "--amend" , "--reset-author" ).
2727 ToArgv ()
2828
2929 return self .cmd .New (cmdArgs ).Run ()
@@ -32,7 +32,7 @@ func (self *CommitCommands) ResetAuthor() error {
3232// Sets the commit's author to the supplied value. Value is expected to be of the form 'Name <Email>'
3333func (self * CommitCommands ) SetAuthor (value string ) error {
3434 cmdArgs := NewGitCmd ("commit" ).
35- Arg ("--allow-empty" , "--only" , "--no-edit" , "--amend" , "--author=" + value ).
35+ Arg ("--allow-empty" , "--allow-empty-message" , "-- only" , "--no-edit" , "--amend" , "--author=" + value ).
3636 ToArgv ()
3737
3838 return self .cmd .New (cmdArgs ).Run ()
@@ -247,7 +247,7 @@ func (self *CommitCommands) AmendHead() error {
247247
248248func (self * CommitCommands ) AmendHeadCmdObj () * oscommands.CmdObj {
249249 cmdArgs := NewGitCmd ("commit" ).
250- Arg ("--amend" , "--no-edit" , "--allow-empty" ).
250+ Arg ("--amend" , "--no-edit" , "--allow-empty" , "--allow-empty-message" ).
251251 ToArgv ()
252252
253253 return self .cmd .New (cmdArgs )
0 commit comments