diff --git a/.gitattributes b/.gitattributes index cd3fde9545..691da62282 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,3 +6,9 @@ configure.ac eol=lf *.am eol=lf *.sh eol=lf *.[ch] whitespace=tab-in-indent + +# Batch files (bat,btm,cmd) must be run with CRLF line endings. +# Refer to https://github.com/curl/curl/pull/6442 +*.bat text eol=crlf +*.btm text eol=crlf +*.cmd text eol=crlf