Do you have a global setting for line ending management in your git tool? If you type git config --list, do you have any special setting for CRLF handling?