Skip to content

Commit

Permalink
Fix(git): Replaced -a with --author and remove false quote marks. (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBernard authored Jan 5, 2023
1 parent 2dc9fca commit b91096f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repo/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func EmptyCommit(msg string, noVerify bool, authorName, authorEmail string) *exe
if authorName != "" || authorEmail != "" {
cmd.Args = append(
cmd.Args,
fmt.Sprintf("-a=\"%q <%q>\"", authorName, authorEmail))
fmt.Sprintf("--author=\"%s <%q>\"", authorName, authorEmail))
}

return cmd
Expand Down Expand Up @@ -104,7 +104,7 @@ func ForceCommit(msg string, noVerify bool, authorName, authorEmail string) *exe
if authorName != "" || authorEmail != "" {
cmd.Args = append(
cmd.Args,
fmt.Sprintf("-a=\"%q <%q>\"", authorName, authorEmail))
fmt.Sprintf("--author=\"%s <%s>\"", authorName, authorEmail))
}

return cmd
Expand Down

0 comments on commit b91096f

Please sign in to comment.