aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2010-03-08 01:10:15 +0100
committerNils Adermann <naderman@naderman.de>2010-03-08 01:10:15 +0100
commitf8d134eb7070fa189d5c9aeb3f4401563188b1e0 (patch)
tree9b047c7e62c87c52e101886dbf0ef6e0a01a28da
parent8d3cdd5dae42ebec0e4f66ef3e991984054645e7 (diff)
parentd9567f121b11d3f5b068b85e7c862c27fc495005 (diff)
downloadforums-f8d134eb7070fa189d5c9aeb3f4401563188b1e0.tar
forums-f8d134eb7070fa189d5c9aeb3f4401563188b1e0.tar.gz
forums-f8d134eb7070fa189d5c9aeb3f4401563188b1e0.tar.bz2
forums-f8d134eb7070fa189d5c9aeb3f4401563188b1e0.tar.xz
forums-f8d134eb7070fa189d5c9aeb3f4401563188b1e0.zip
Merge branch 'develop-olympus' into develop
-rwxr-xr-xgit-tools/hooks/prepare-commit-msg4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-tools/hooks/prepare-commit-msg b/git-tools/hooks/prepare-commit-msg
index 284354081e..e1e05d67b8 100755
--- a/git-tools/hooks/prepare-commit-msg
+++ b/git-tools/hooks/prepare-commit-msg
@@ -18,7 +18,7 @@ branch="$(cat $GIT_DIR/HEAD | sed 's/ref: 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/
-if [ "$2" = "" ] && [ $(echo "$branch" | grep -e '^bug/') ]; then
+# * also make sure the branch name begins with bug/ or feature/
+if [ "$2" = "" ] && [ $(echo "$branch" | grep -e '^\(bug\|feature\)/') ]; then
echo "[$branch] $(cat $1)" > "$1"
fi