From a9046e5608ed362c7123cb006adab7102cd58e63 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Mon, 12 Jul 2010 02:04:29 +0100 Subject: [task/git-tools] Adjust the hook to enforce that a ticket is always mentioned PHPBB3-9768 --- git-tools/hooks/commit-msg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git-tools/hooks') diff --git a/git-tools/hooks/commit-msg b/git-tools/hooks/commit-msg index 894e67aa09..b04a761c29 100755 --- a/git-tools/hooks/commit-msg +++ b/git-tools/hooks/commit-msg @@ -157,7 +157,7 @@ do # Successful match, but on which line format case $expect in "header") - expecting="empty eof"; + expecting="empty"; echo "$line" | grep -Eq "^\[ticket/[0-9]+\]$" && ( ticket=$(echo "$line" | sed 's,\[ticket/\([0-9]*\)\].*,\1,'); @@ -174,7 +174,7 @@ do fi ;; "description") - expecting="description empty eof"; + expecting="description empty"; in_description=1; ;; "footer") -- cgit v1.2.1