From 47a26a4c5c9c504aaa13d79f416fec8a9c2ee550 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 6 Aug 2015 15:46:37 +0000 Subject: [PATCH] added 1 more message filtering check in pre-commit --- codepot/etc/pre-commit.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codepot/etc/pre-commit.in b/codepot/etc/pre-commit.in index f8887d8e..cb98eed5 100644 --- a/codepot/etc/pre-commit.in +++ b/codepot/etc/pre-commit.in @@ -195,7 +195,7 @@ sub check_commit_message my $log = $txn->prop ('svn:log'); # TODO: block a certain message patterns. create a configuration item # for this - #if ($log =~ /[[:punct:]]{5,}/ || contains_repeated_chars($log, 4)) + #if ($log =~ /[[:punct:]]{5,}/ || $log =~ /[[:alpha:]]{40,}/ || contains_repeated_chars($log, 4)) #{ # print (STDERR "Commit message rejected\n"); # return 0;