Skip to content

Commit ca90192

Browse files
committed
Replace CRLF in all commit messages which currently causes DCO check to fail
1 parent 55b1840 commit ca90192

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)