tags:

views:

105

answers:

1

A lot of svn repositories require new files to have an svn:eol-style attribute. Is there any way to ensure that this happens with git-svn ?

+2  A: 

You can try setting autoproperties ([1][2]) in subversion config. It will ensure that during the add operation of new files svn:eol-style is set properly.

AFAIU git-svn is just using svn in inner workings, and it should load the subversion configuration, and set auto-props for new files.

Ok, I tested it, it works.

Example .subversion/config:

[miscellany]
enable-auto-props = yes

[auto-props]
*.cpp = svn:keywords=Id Revision;svn:eol-style=native
*.cs = svn:keywords=Id Revision;svn:eol-style=native
silk