fixed a missing caret bug in pre-commit.in

This commit is contained in:
hyung-hwan 2018-01-29 05:00:33 +00:00
parent d6055f4c21
commit 89a6381530

View File

@ -460,7 +460,7 @@ sub restrict_changes_in_topdirs
foreach my $topdir(@topdirs)
{
if ($affected_file =~ /\/${topdir}\/(.*)$/)
if ($affected_file =~ /^\/${topdir}\/(.*)$/)
{
# the affected file is located under the given directory.
my $affected_file_nodir = "${1}";