aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-06-22 14:42:02 +0200
committerChris Smith <toonarmy@phpbb.com>2010-07-12 02:04:29 +0100
commitf0509e4620643549caa7a486d54b12d53617ab94 (patch)
tree61be7bec4e9314951196df73568e706e2f79aae1
parentMerge branch 'ticket/bantu/9655' into develop-olympus (diff)
downloadphpbb-f0509e4620643549caa7a486d54b12d53617ab94.tar.gz
phpbb-f0509e4620643549caa7a486d54b12d53617ab94.tar.bz2
phpbb-f0509e4620643549caa7a486d54b12d53617ab94.zip
[task/git-tools] append ticket id to git log message
PHPBB3-9770
-rwxr-xr-xgit-tools/hooks/prepare-commit-msg7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-tools/hooks/prepare-commit-msg b/git-tools/hooks/prepare-commit-msg
index 033cb187c7..ab01f49b5a 100755
--- a/git-tools/hooks/prepare-commit-msg
+++ b/git-tools/hooks/prepare-commit-msg
@@ -32,3 +32,10 @@ if [ "$2" = "" ]
then
echo "[$branch] $(cat "$1")" > "$1"
fi
+
+if (echo $branch | grep '^ticket/')
+then
+ ticket_id="$(echo $branch | sed "s/ticket\///g")"
+ echo >> "$1"
+ echo "PHPBB3-$ticket_id" >> "$1"
+fi