How to change subversion mime-type

When you have e.g. an html file inside your repository and you want it to be displayed in your browers correctly, i.e. as html and not as plain text, this is what you need to do:

One needs to properly set the mime-type to "text/html".

Checkout the repository and do the following:
svn propedit svn:mime-type yourfile.html --editor-cmd vi
Here, vi is used as the editor.
enter "text/html", save and exit (:wq for vi)
Check if mime-type was changed
svn -R proplist
svn commit

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?