1
0
Fork 0
forked from forgejo/forgejo

Use --message=%s for git commit message (#23028) (#23029)

Backport #23028

This backport is done by manually because the git module is different.
This commit is contained in:
wxiaoguang 2023-02-21 14:16:25 +08:00 committed by GitHub
parent 660a83bd2e
commit c50d4202ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -319,7 +319,7 @@ func initRepoCommit(ctx context.Context, tmpPath string, repo *repo_model.Reposi
cmd := git.NewCommand(ctx,
"commit", git.CmdArg(fmt.Sprintf("--author='%s <%s>'", sig.Name, sig.Email)),
"-m", "Initial commit",
"--message=Initial commit",
)
sign, keyID, signer, _ := asymkey_service.SignInitialCommit(ctx, tmpPath, u)