From 123615b189ff759c9e534db7705dce856c160609 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint <Friedemann.Kleint@digia.com> Date: Wed, 22 May 2013 09:32:38 +0200 Subject: [PATCH] Sanity: Suppress license header check for .qdocconf files. Change-Id: Icc4dfd681017ff07ab34444004d0259579fe9949 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> --- git-hooks/sanitize-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index 4711bd1..c279515 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -505,7 +505,7 @@ while (<DIFF>) { } $size = 0; $new_file = 1; - $no_copyright = $issrc; + $no_copyright = $issrc && $file !~ /\.qdocconf$/i; } elsif ($size > 20000 && !$issrc && !defined($cfg{size})) { my $old_size = 0; for my $old_tree (split(/,/, $old_trees)) { -- GitLab