Re: Need to chaeck mime-type on a specific extension
From: David Weintraub <qazwart_at_gmail.com>
Date: Tue, 16 Aug 2011 17:36:23 -0400
> Hi, I need to reject commits that have a file extension .mdl and don't have
I just happen to have such a hook.
The hook is in Perl, but doesn't require anything that doesn't come
All you need is a control.ini file with this entry to do what you want:
[property ALL MDL files need the property "svn:mime-type" on them]
Try this version first:
I have an older version here:
In this version, you can't use the "file" parameter. You use the
[property ALL MDL files need the property "svn:mime-type" on them]
Let me know how it works for you.
-- David Weintraub qazwart_at_gmail.comReceived on 2011-08-16 23:36:52 CEST |
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.