threads / discuss / 13509

git-svn and svn:mime-type

Subject: git-svn and svn:mime-type

## tl;dr

One message between May 14, 2008 and May 14, 2008.

replies: 0people: 1as markdown or json

Kevin Ballard· May 14, 2008, 05:46 UTC · lore

When adding a binary file with svn, svn:mime-type is set to application/octet-stream automatically. git-svn really should be able to do the same thing. I tried implementing it myself, but I got lost in the mess of perl that is git-svn.perl and couldn't figure out the right place to do it or how to properly detect if the new file is a binary file.

This is causing problems because when I commit a new binary file to the macports svn repo using git-svn, an email is sent out with a binary diff of the whole file, because the post-commit hook script on the svn repo uses svn:mime-type to determine if it's a binary file or a text file (which is all well and proper).

Any chance somebody who knows more perl or is more familiar with git- svn.perl could take a look at this?

-Kevin Ballard
-- 
Kevin Ballard
http://kevin.sb.org
kevin@sb.org
http://www.tildesoft.com

← back to recent threads