aboutsummaryrefslogtreecommitdiffstats
path: root/git-tools/hooks
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2010-04-03 02:13:48 +0100
committerChris Smith <toonarmy@phpbb.com>2010-04-03 02:13:48 +0100
commit3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6 (patch)
tree2fdb8cfcc942da0d72a27e806e969fe26e552e4e /git-tools/hooks
parentb6920b7ca8a6859bf9f76247b882dbd9331a9c78 (diff)
downloadforums-3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6.tar
forums-3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6.tar.gz
forums-3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6.tar.bz2
forums-3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6.tar.xz
forums-3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6.zip
[git-tools] Prepend the branch to the commit message for all branches.
Diffstat (limited to 'git-tools/hooks')
-rwxr-xr-xgit-tools/hooks/prepare-commit-msg2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-tools/hooks/prepare-commit-msg b/git-tools/hooks/prepare-commit-msg
index 354b539cc1..033cb187c7 100755
--- a/git-tools/hooks/prepare-commit-msg
+++ b/git-tools/hooks/prepare-commit-msg
@@ -28,7 +28,7 @@ branch="$(echo "$branch" | sed "s/refs\/heads\///g")"
# * only run when normal commit is made (without -m or -F;
# not a merge, etc.)
# * also make sure the branch name begins with bug/ or feature/
-if [ "$2" = "" ] && [ $(echo "$branch" | grep -e "^\(bug\|feature\)/") ]
+if [ "$2" = "" ]
then
echo "[$branch] $(cat "$1")" > "$1"
fi