fixed a missing caret bug in pre-commit.in
This commit is contained in:
parent
d6055f4c21
commit
89a6381530
@ -460,7 +460,7 @@ sub restrict_changes_in_topdirs
|
|||||||
|
|
||||||
foreach my $topdir(@topdirs)
|
foreach my $topdir(@topdirs)
|
||||||
{
|
{
|
||||||
if ($affected_file =~ /\/${topdir}\/(.*)$/)
|
if ($affected_file =~ /^\/${topdir}\/(.*)$/)
|
||||||
{
|
{
|
||||||
# the affected file is located under the given directory.
|
# the affected file is located under the given directory.
|
||||||
my $affected_file_nodir = "${1}";
|
my $affected_file_nodir = "${1}";
|
||||||
|
Loading…
Reference in New Issue
Block a user