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

CMakeLists.txt files have CRLF on Linux #5

Open
scharlton2 opened this issue Mar 8, 2023 · 1 comment
Open

CMakeLists.txt files have CRLF on Linux #5

scharlton2 opened this issue Mar 8, 2023 · 1 comment

Comments

@scharlton2
Copy link
Contributor

No description provided.

@scharlton2
Copy link
Contributor Author

Fixed using: https://git-scm.com/docs/gitattributes/2.36.0
just below 'From a clean working directory:'

$ echo "CMakeLists.txt text=auto" >.gitattributes
$ git add --renormalize .
$ git status # Show files that will be normalized
$ git commit -m "Introduce end-of-line normalization"

The .gitattributes doesn't get checked in and is no longer needed.

performed using 'git version 2.34.1' (ubuntu-22.04.1-desktop-amd64)

and tested on 'git version 2.7.4' (jenkins-ubuntu-16.04.2-desktop-amd64)

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

When branches are created from issues, their pull requests are automatically linked.

1 participant