[task/git-tools] Adjust the hook to enforce that a ticket is always mentioned

PHPBB3-9768
This commit is contained in:
Chris Smith 2010-07-12 02:04:29 +01:00
parent db13dc2d43
commit a9046e5608

View file

@ -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")