summaryrefslogtreecommitdiffstats
path: root/git-hooks
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2016-10-22 19:45:21 +0300
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2016-10-25 11:24:47 +0000
commitc38b38d8b6808e74d9f7c0a5c77054c317892fb6 (patch)
tree40a51f87163538bba36bea3703680e1081462e1d /git-hooks
parent9f5cfd98722f9b04a7ec1556dee9c77f0977e59c (diff)
sanitize-commit: warn about obsolete addresses
Change-Id: Ied3d6b8ce07473611515b99d68b19fdf8fe6f283 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/sanitize-commit7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit
index e88a605..f5f734b 100755
--- a/git-hooks/sanitize-commit
+++ b/git-hooks/sanitize-commit
@@ -221,6 +221,13 @@ sub check_email($$$$)
do_complain(-1, "Bogus $label address", "email", 1);
}
}
+ if ($addr =~ /\@theqtcompany\.com$/) {
+ if ($gerrit_rest) {
+ do_complain($line, "Obsolete domain. Please update to qt.io.", "email", 1);
+ } else {
+ do_complain(-1, "Obsolete domain in $label address. Please update to qt.io.", "email", 1);
+ }
+ }
# UTF-8 is a pretty safe bet - all modern Unix systems use it, and
# when not printing to a Windows console, msysgit also uses it.
eval { $real = decode_utf8($real, Encode::FB_CROAK); };