svn2git icon indicating copy to clipboard operation
svn2git copied to clipboard

How to handle end-of-lines normalization

Open ymartin59 opened this issue 6 years ago • 2 comments

We are facing issues after migration when users add .gitattributes file to keep LF for shell scripts when working on Windows platform. "Perfect world" expectation would be that svn-all-fast-export inspected svn:eol-style Subversion property and applies ".gitattributes" for each imported commit.

What is the recommended way to get all text files with LF EOL in repository itself, so that Git attributes can be used seamlessly after migration when committing from different EOL-style platforms?

ymartin59 avatar Feb 14 '19 16:02 ymartin59

Why add directive to "repository" create, so that an initial commit is created with expected ".gitattributes" content, which would allow LFS support too?

ymartin59 avatar May 31 '20 18:05 ymartin59

Good question.

At this point, my workaround is to try lint-history:

lint-history dos2unix

It's pretty fast on a huge repo anyway.

huyz avatar Apr 23 '24 17:04 huyz