CRLF to LF warning after fresh clone

After doing a fresh clone of my fork, which is up to date with the original repo, I get for 39 files some warnings like:

warning: CRLF will be replaced by LF in src/libs/qmuparser/LICENSE_BSD.txt. The file will have its original line endings in your working directory.

warning: CRLF will be replaced by LF in src/libs/vgeometry/vellipticalarc.h. The file will have its original line` endings in your working directory.

It seems like git automatically converted Windows end of lines to Unix ones. As a result I have to commit those 39 files.

Did anyone have the same problem? I work with Ubuntu 16.04,

1 Like

I see that @slspencer already did a similar commit:

https://github.com/valentina-project/vpo2/commit/aa47bf026ab89708f2fbdcf6209f84ef7de85246

So i’ll just commit them as well to my fork.

1 Like

Yeah, the .gitignore file that was added included a global setting for CRLF. There’s more info here about Git and line endings (CRLF in windows, LF in linux)

Configuring Git to handle line endings - GitHub Docs

1 Like

Yes. Susan had already committed a few files with CRLF → LF… a few others popped up so I switched the ending & committed them on my local.

2 Likes