mirror of
https://github.com/vbatts/git-validation.git
synced 2024-11-26 01:55:40 +00:00
Replace CRLF in all commit messages which currently causes DCO check to fail
This commit is contained in:
parent
55b1840f58
commit
ca901924b2
1 changed files with 2 additions and 1 deletions
|
@ -153,7 +153,8 @@ func LogCommit(commit string) (*CommitEntry, error) {
|
|||
logrus.Errorf("[git] cmd: %q", strings.Join(cmd.Args, " "))
|
||||
return nil, err
|
||||
}
|
||||
c[v] = strings.TrimSpace(string(out))
|
||||
commitMessage := strings.ReplaceAll(string(out), "\r\n", "\n")
|
||||
c[v] = strings.TrimSpace(commitMessage)
|
||||
}
|
||||
|
||||
return &c, nil
|
||||
|
|
Loading…
Reference in a new issue