git-as-svn / git-as-svn

Subversion frontend server for Git repositories

Home Page:https://git-as-svn.github.io/git-as-svn/htmlsingle/git-as-svn.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-as-svn doesn't add svn:mime-type=application/octet-stream auto-props for -text files

slonopotamus opened this issue · comments

  1. Create .gitattributes with * -text contents in repo root
  2. Check svn properties on repository root

Expected: there's svn:auto-props = * svn:mime-type=application/octet-stream

#106 was the reason why 427ae47 was done, though its motivation is not clear.

We cannot add svn:auto-props entry for *. Because svn (unlike git) applies all matching entries in undefined order.

And things are even worse:

$ svn pl -v .
Properties on '.':
  svn:auto-props
    * = svn:eol-style=native
    * = svn:mime-type=application/octet-stream
$ touch foo
$ svn add foo 
svn: E200009: Can't set 'svn:eol-style': file '/tmp/wc/foo' has binary mime type property
$ svn st foo 
?       foo