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 9e73f972b0.

Change-Id: I388c194645a1577e5446891f508b31f761d1bbbf
This commit is contained in:
Stephan Bergmann 2012-07-11 09:26:50 +02:00 committed by Bjoern Michaelsen
parent 28d8b54c14
commit ebdfaefc87

View file

@ -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;
}