Use the authorName as committer to avoid the inconsistency with name in git clients (#10518)

This commit is contained in:
Anagh Hegde 2022-01-20 19:49:36 +05:30 committed by GitHub
parent 10e64df1e5
commit 31f02df54f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,6 +103,7 @@ public class GitExecutorImpl implements GitExecutor {
// Only make a commit if there are any updates
.setAllowEmpty(false)
.setAuthor(finalAuthorName, finalAuthorEmail)
.setCommitter(finalAuthorName, finalAuthorEmail)
.call();
return "Committed successfully!";
}