From 9c191a507b2d6f6522a57c9efc0911b9cb67873a Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Date: Thu, 23 Oct 2014 16:27:32 +0200 Subject: [PATCH] fix recognition of 3rdparty/ at root directory Change-Id: I22da050bf3da9db107332b1bcdb3c321dc7dd390 Reviewed-by: Orgad Shaneh <orgads@gmail.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 cfacbb4..3586a79 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -572,7 +572,7 @@ while (<DIFF>) { complain("Changing this file is risky. Please add $watch_people{$key} as reviewer(s).", "", -1); } } - my $foreign = ($file =~ /\/3rdparty\//); + my $foreign = ($file =~ /(^|\/)3rdparty\//); $new_file = 0; $maybe_bin = 0; $is_special = 0; -- GitLab