NSPManager / NSPanelManager

Sonoff NSPanel custom firmware for responsive and intuitive use
https://nspanelmanager.com/
128 stars 10 forks source link

Repo checkout in Windows causes CRLF line endings, breaks code #55

Closed emmaly closed 11 months ago

emmaly commented 11 months ago

Using the default configuration in Windows, the git client defaults to core.autocrlf=true which will cause all LF line endings to become CRLF... adding that unwanted, pesky CR.

That's a problem if the user then uses something like SCP/SFTP to transfer the files over to a Linux machine or a Docker environment to run the code as the CR portion will stick around and cause shell scripts and other parsers to complain about syntax errors and the like, leading to non-running code. No good.

Preventing this automatic conversion away from LF would resolve this issue, but it must not cause CRLF to be left as line endings in committed files.

tpanajott commented 11 months ago

Issues resolved in PR. Closing.