@@ -23,7 +23,7 @@ func NewCommitCommands(gitCommon *GitCommon) *CommitCommands {
23
23
// ResetAuthor resets the author of the topmost commit
24
24
func (self * CommitCommands ) ResetAuthor () error {
25
25
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" ).
27
27
ToArgv ()
28
28
29
29
return self .cmd .New (cmdArgs ).Run ()
@@ -32,7 +32,7 @@ func (self *CommitCommands) ResetAuthor() error {
32
32
// Sets the commit's author to the supplied value. Value is expected to be of the form 'Name <Email>'
33
33
func (self * CommitCommands ) SetAuthor (value string ) error {
34
34
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 ).
36
36
ToArgv ()
37
37
38
38
return self .cmd .New (cmdArgs ).Run ()
@@ -247,7 +247,7 @@ func (self *CommitCommands) AmendHead() error {
247
247
248
248
func (self * CommitCommands ) AmendHeadCmdObj () * oscommands.CmdObj {
249
249
cmdArgs := NewGitCmd ("commit" ).
250
- Arg ("--amend" , "--no-edit" , "--allow-empty" ).
250
+ Arg ("--amend" , "--no-edit" , "--allow-empty" , "--allow-empty-message" ).
251
251
ToArgv ()
252
252
253
253
return self .cmd .New (cmdArgs )
0 commit comments