From ebdfaefc875d6ab5c42f1e659636759909072950 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 11 Jul 2012 09:26:50 +0200 Subject: Improve placement of Change-Id line ...so that it is not added to a block of lines from the original commit message that happen to start with letters followed by a colon but then not followed by a space, as happened for 9e73f972b0e9a3e7b59c8e770b14c3d539600b06. Change-Id: I388c194645a1577e5446891f508b31f761d1bbbf --- git-hooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-hooks') diff --git a/git-hooks/commit-msg b/git-hooks/commit-msg index ad6400d1fcde..fa0b2e20aea8 100755 --- a/git-hooks/commit-msg +++ b/git-hooks/commit-msg @@ -125,7 +125,7 @@ add_ChangeId() { for($line = @message - 1; $line >= 0; $line--) { $_ = $message[$line]; - if (/^[a-zA-Z0-9-]+:/ && !m,^[a-z0-9-]+://,) { + if (/^[a-zA-Z0-9-]+: /) { $haveFooter++; next; } -- cgit v1.2.3