Uexpected CRLF conversion on clone [message #1823975] |
Sun, 05 April 2020 21:45 |
Rice Bauer Messages: 34 Registered: August 2009 |
Member |
|
|
Hi there,
again, I'm on a Windows 10 machine with Eclipse 2020-03 and a .gitattributes with only this very simple line:
My gitconfig (system level) contains the following entry:
Inside my repo, the text files contain LF line endings.
So, what I'd expect is that no line ending conversion happens on checkout and clone. That is also what Git for Windows does and what I read from here: https://git-scm.com/docs/gitattributes.
And by the way, for the checkout command, this is also what Eclipse does, so if I checkout an old commit that doesn't contain a certain text file and then checkout the latest commit again, I got LFs in the working directory.
However, if I perform a clone via "File > Import > Projects from Git...", my text files are checked out with CRLF line endings.
Can anybody confirm that this is undesired behaviour?
Regards
Rice
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02381 seconds