Skip to content

Commit fd9b8fa

Browse files
authored
Merge pull request #55 from swagatbora90/DCO-check-CRLF
Replace CRLF in all commit messages which currently causes DCO check …
2 parents 55b1840 + ca90192 commit fd9b8fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git/commits.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ func LogCommit(commit string) (*CommitEntry, error) {
153153
logrus.Errorf("[git] cmd: %q", strings.Join(cmd.Args, " "))
154154
return nil, err
155155
}
156-
c[v] = strings.TrimSpace(string(out))
156+
commitMessage := strings.ReplaceAll(string(out), "\r\n", "\n")
157+
c[v] = strings.TrimSpace(commitMessage)
157158
}
158159

159160
return &c, nil

0 commit comments

Comments
 (0)