Handle malformed commit messages (#2069)

This commit is contained in:
Chris Smith 2018-10-18 11:10:36 -07:00 committed by GitHub
parent 3e9b210edd
commit eba044e061
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -414,7 +414,7 @@ func addGitCommitMetadata(repo *git.Repository, repoRoot string, m *backend.Upda
}
// If there is no message set manually, default to the Git commit's title.
msg := commit.Message
msg := strings.TrimSpace(commit.Message)
if msg == "" && ciVars.CommitMessage != "" {
msg = ciVars.CommitMessage
}