edk2-nvidia
edk2-nvidia copied to clipboard
Line Endings of Source Files are CRLF in repository on clone
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