aboutsummaryrefslogtreecommitdiff
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
parent[git-tools] Use env to find the correct paths to binaries. (diff)
downloadphpbb-3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6.tar.gz
phpbb-3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6.tar.bz2
phpbb-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