kart7990 / virtualpitwall

https://staging.virtualpitwall.com
Other
18 stars 7 forks source link

Set eol=lf in .gitattributes #28

Closed elft3r closed 10 months ago

elft3r commented 10 months ago

Hey @kart7990, it looks like the problem is a Windows vs Linux problem. Apparently, by default git on Windows checks out the files and converts the line endings to CRLF, while being checked out. Before committing, the line-ending gets reverted. That's also why the check fails on Windows, as it checks for the wrong line endings.

I have added a .gitattributes file, which sets the line-endings always to use lf. This should prevent the issue on another level and also from different line endings from getting into the code base.

To active this on your branch, you would need to follow the instructions described here

Best, Jochen