handle line endings in git correctly