Allow empty commit when merging pull request with squash style (#35989) (#36003)

This commit is contained in:
Lunny Xiao authored and GitHub committed 2025-11-22 09:17:28 -08:00
1 parent 20cf4b7849
commit 91901c2a60
2 files changed
+32 -1

No files matched your search

+2 -1
View File
@@ -71,7 +71,8 @@ func doMergeStyleSquash(ctx *mergeContext, message string) error {
}
cmdCommit := gitcmd.NewCommand("commit").
AddOptionFormat("--author='%s <%s>'", sig.Name, sig.Email).
AddOptionFormat("--message=%s", message)
AddOptionFormat("--message=%s", message).
AddArguments("--allow-empty")
if ctx.signKey == nil {
cmdCommit.AddArguments("--no-gpg-sign")
} else {