[Libreoffice-commits] .: git-hooks/commit-msg
Bjoern Michaelsen
bmichaelsen at kemper.freedesktop.org
Thu Jul 12 08:23:19 PDT 2012
git-hooks/commit-msg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ebdfaefc875d6ab5c42f1e659636759909072950
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jul 11 09:26:50 2012 +0200
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
diff --git a/git-hooks/commit-msg b/git-hooks/commit-msg
index ad6400d..fa0b2e2 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;
}
More information about the Libreoffice-commits
mailing list