mirror of
https://github.com/vbatts/git-validation.git
synced 2024-12-26 23:46:30 +00:00
Merge pull request #55 from swagatbora90/DCO-check-CRLF
Replace CRLF in all commit messages which currently causes DCO check …
This commit is contained in:
commit
fd9b8fa612
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