[prev] [thread] [next] [lurker] [Date index for 2003/09/03]
Author: richardc Date: 2003-09-03 07:36:15 +0100 (Wed, 03 Sep 2003) New Revision: 1395 Added: trunk/hooks/pre-commit Log: give this a whirl Added: trunk/hooks/pre-commit =================================================================== --- trunk/hooks/pre-commit 2003-09-03 05:02:45 UTC (rev 1394) +++ trunk/hooks/pre-commit 2003-09-03 06:36:15 UTC (rev 1395) @@ -0,0 +1,11 @@ +#!/bin/sh + +REPOS="$1" +TXN="$2 + + +# if the diff is adding tabs, reject it +svnlook diff -t $TXN $REPOS | perl -wne 'exit 1 if /^\+ .*\t/' && exit 1 + +# fallthrough, you're OK +exit 0 Property changes on: trunk/hooks/pre-commit ___________________________________________________________________ Name: svn:executable + *
Generated at 13:57 on 01 Jul 2004 by mariachi 0.52