Skip to content

Commit

Permalink
Update commit hook to match new "advisory rules" files
Browse files Browse the repository at this point in the history
Signed-off-by: Hugues Peccatte <hugues.peccatte@aareon.fr>
  • Loading branch information
Hugues Peccatte committed Aug 30, 2019
1 parent 780b226 commit e6abd68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/commits.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
$files_eol = array();
foreach ($detail['files'] as $file) {
if (preg_match("@\n\+[^\n]*\t@", $file['patch'])) {
if ($file['filename'] != 'libraries/advisory_rules.txt') {
if (!preg_match('^libraries/advisory_rules.*\.txt$', $file['filename'])) {
$files_tab[] = $file['filename'];
}
}
Expand Down

0 comments on commit e6abd68

Please sign in to comment.