summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2023-03-27 09:11:26 +0200
committerKai Köhne <kai.koehne@qt.io>2023-05-15 10:42:28 +0000
commit9d46982641e0584c61a9b3ccc5f0ae43fe0b68ce (patch)
tree040261f3cc03497d21b46d4354158a405d79af13
parent5d572251d64feb8c2dcb3df6552bad198e98d0c8 (diff)
downloadqtrepotools-master.tar.gz
Do not check spelling of licensesHEADmaster
The top-level LICENSES directory is reserved for standard license texts. It does not make much sense to complain about spelling there (for instance licence -> license) Change-Id: Id6eb682a71d7188a0b36ddf6e8601913f277d611 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
-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 1a42fcf..7617ad4 100755
--- a/git-hooks/sanitize-commit
+++ b/git-hooks/sanitize-commit
@@ -918,7 +918,7 @@ while (<DIFF>) {
$clike = ($file =~ /\.(c|cc|cpp|c\+\+|cxx|qdoc|m|mm|h|hpp|hxx|cs|java|js|qs|qml|g|y|ypp|pl|glsl)$/i);
$qmake = ($file =~ /\.pr[filo]$/i);
$is_bin = ($file =~ /\.(ps|pdf)$/);
- $foreign = $is_bin || ($file =~ /(^|\/)3rdparty\//);
+ $foreign = $is_bin || ($file =~ /(^|\/)3rdparty\//) || ($file =~ /^LICENSES\//);
$new_file = 0;
$maybe_bin = 0;
$is_special = 0;