summaryrefslogtreecommitdiff
path: root/git-hooks
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-07-11 09:26:50 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-07-12 17:22:59 +0200
commitebdfaefc875d6ab5c42f1e659636759909072950 (patch)
treeffada19b16633ca2b0e33777e6a61013cf98ba78 /git-hooks
parent28d8b54c142df38b94079cf0d93f09c2a008459b (diff)
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
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/commit-msg2
1 files changed, 1 insertions, 1 deletions
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;
}