forked from forgejo/forgejo
Backport #23028
This backport is done by manually because the git module is different.
(cherry picked from commit c50d4202ef
)
This commit is contained in:
parent
c19a5e6bc0
commit
0f0f775737
3 changed files with 6 additions and 6 deletions
|
@ -132,7 +132,7 @@ func CommitChangesWithArgs(repoPath string, args []CmdArg, opts CommitChangesOpt
|
|||
if opts.Author != nil {
|
||||
cmd.AddArguments(CmdArg(fmt.Sprintf("--author='%s <%s>'", opts.Author.Name, opts.Author.Email)))
|
||||
}
|
||||
cmd.AddArguments("-m").AddDynamicArguments(opts.Message)
|
||||
cmd.AddArguments(CmdArg("--message=" + opts.Message))
|
||||
|
||||
_, _, err := cmd.RunStdString(&RunOpts{Dir: repoPath})
|
||||
// No stderr but exit status 1 means nothing to commit.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue