edk2-nvidia icon indicating copy to clipboard operation
edk2-nvidia copied to clipboard

Line Endings of Source Files are CRLF in repository on clone

Open mmitchel opened this issue 2 years ago • 0 comments

Add a .gitattributes for the binary assets; check in source files in a manner that line endings are not CRLF but utilize the best practices for source modules being checked into a repository having their line endings as LF. This is controlled by a client using the git config setting core.autocrlf on Windows set to something other than false.

.gitattributes example:

  • text=auto *.bmp binary

This shows up when attempting to apply patches from a machine running Linux using bitbake as a build system.

Possible command to utilize:

find . -type f ! -path './.git/' ! -path '.bmp' -print | xargs -L 1 dos2unix

mmitchel avatar Feb 14 '23 21:02 mmitchel