diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2019-10-29 17:26:56 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2019-10-30 10:33:57 +0000 |
commit | 0028759fdab4f2a5d59b1ec3cfc34d2c992e9d94 (patch) | |
tree | ddbe6ea320005a4a672ecc378454c203ea031ada /git-hooks | |
parent | 94323df29462094275e5c837d47a2c6b8302fb3e (diff) | |
download | qtrepotools-0028759fdab4f2a5d59b1ec3cfc34d2c992e9d94.tar.gz |
Expand the exemptions for test data files
Along with not caring how messily they use space, we don't care if
they end in a newline, lack a copyright notice or use terminology that
might be mistaken for someone's trade-mark.
Fixes: QTQAINFRA-2832
Change-Id: I08b919bf3f9c97e2d47598b69430d6fbf909f847
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Diffstat (limited to 'git-hooks')
-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 3a60076..ebe620f 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -699,7 +699,7 @@ while (<DIFF>) { complain("Adding backup file", "backup") if ($new_file && !defined($cfg{backup})); $ws_check = 0; } elsif ($file =~ m,^tests/.*/(test)?data/,) { - $ws_check = 0; + $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})); $ws_check = 0; |