mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Add feature/ support to branchname hook
The previously introduced branchname hook now will also use feature/ branch names, in addition to the existing bug/.
This commit is contained in:
parent
d0d1ab5471
commit
0a6db697e6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue