summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-04-27 16:40:37 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2017-04-27 16:20:15 +0000
commit59e404b2f2628ca3f4e8104ec55c7409f9db90f3 (patch)
tree1e7b05f56654d39769acc27842fa3d6960259fcc
parentbfbc2828b872b5cc696d1c9fadf965fb0e8e3dc8 (diff)
don't complain about missing copyright headers in 3rdparty code
it's pointless. Change-Id: I7f9eec32134ba2793ec8015ebccce6cea33867ec Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-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)) {