changed the pre-commit script to exclude repeated punctuation symbols in getting the message length
This commit is contained in:
parent
5541c1913b
commit
a0c5fb4dbd
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user