summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 f455c42..d6cce72 100755
--- a/git-hooks/sanitize-commit
+++ b/git-hooks/sanitize-commit
@@ -853,7 +853,7 @@ while (<DIFF>) {
}
$size = 0;
$new_file = 1;
- $no_copyright = $issrc && $file !~ /\.(qdocconf|json)$/i;
+ $no_copyright = $issrc && $file !~ /\.(qdocconf|json)$|/i && $file !~ /(^|\/)3rdparty\//;
} elsif ($size > 20000 && !$issrc && !defined($cfg{size})) {
my $old_size = 0;
for my $old_tree (split(/,/, $old_trees)) {