From a0c5fb4dbd6606bf236e16295298a236115ed064 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 4 Aug 2015 11:15:59 +0000 Subject: [PATCH] changed the pre-commit script to exclude repeated punctuation symbols in getting the message length --- codepot/etc/pre-commit.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codepot/etc/pre-commit.in b/codepot/etc/pre-commit.in index 8e4ec4d8..9e33c3f5 100644 --- a/codepot/etc/pre-commit.in +++ b/codepot/etc/pre-commit.in @@ -167,6 +167,8 @@ sub check_commit_message } my $log = $txn->prop ('svn:log'); + $log =~ s/([[:punct:]]{1,2}\s+){3,}/ /g; + $log =~ s/[[:punct:]]{3,}/ /g; $log =~ s/^\s+|\s+$//g; # trim leading spaces and trailing spaces if (length($log) < $minlen) {