Handle malformed commit messages (#2069)
This commit is contained in:
parent
3e9b210edd
commit
eba044e061
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue