diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2020-08-23 16:52:06 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2020-08-23 19:23:45 +0000 |
commit | 9207982f370e0bf393df2478a9b8e5e0f30882bd (patch) | |
tree | daa440d4a3be2ddc00af5a5211ccf4112b060325 | |
parent | 1e8b97074ab4710a420edf8f62ca074d51a47b40 (diff) |
Sanity: Exclude also testdata-* from copyright check
For example, testdata-qt in qbs/527d5a8ec54e44291d4968754bdf574ebe57822b
Change-Id: I072327c111bb0ba010bc606fabf56a9ebc6c0d95
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
-rwxr-xr-x | git-hooks/sanitize-commit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index c74f995..b38359d 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -752,7 +752,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/.*/(perf|test)?data[/_],) { + } elsif ($file =~ m,^tests/.*/(perf|test)?data[/_-],) { $ws_check = $eof_check = $apple_check = $no_copyright = 0; } elsif ($file =~ /\.(prl|la|pc|ilk)$/i) { complain("Adding build artifact", "generated") if ($new_file && !defined($cfg{generated})); |