summaryrefslogtreecommitdiff
path: root/git-hooks/sanitize-commit
diff options
context:
space:
mode:
Diffstat (limited to 'git-hooks/sanitize-commit')
-rwxr-xr-xgit-hooks/sanitize-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit
index 08a3dab..3a60076 100755
--- a/git-hooks/sanitize-commit
+++ b/git-hooks/sanitize-commit
@@ -698,7 +698,7 @@ while (<DIFF>) {
if ($file =~ /(~|\.(old|bak))$/i) {
complain("Adding backup file", "backup") if ($new_file && !defined($cfg{backup}));
$ws_check = 0;
- } elsif ($file =~ m,^tests/.*/testdata/,) {
+ } elsif ($file =~ m,^tests/.*/(test)?data/,) {
$ws_check = 0;
} elsif ($file =~ /\.(prl|la|pc|ilk)$/i) {
complain("Adding build artifact", "generated") if ($new_file && !defined($cfg{generated}));