Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line Endings of Source Files are CRLF in repository on clone #35

Open
mmitchel opened this issue Feb 14, 2023 · 0 comments
Open

Line Endings of Source Files are CRLF in repository on clone #35

mmitchel opened this issue Feb 14, 2023 · 0 comments

Comments

@mmitchel
Copy link

mmitchel commented Feb 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant