[#2] Commit hook won't run on master now
parent
0007652e68
commit
4ec6236e26
|
@ -4,6 +4,10 @@
|
||||||
# tries to derive that number from the branch name
|
# tries to derive that number from the branch name
|
||||||
|
|
||||||
branch=`git rev-parse --abbrev-ref HEAD`
|
branch=`git rev-parse --abbrev-ref HEAD`
|
||||||
|
|
||||||
|
# This check doesn't need to run when commiting to develop/master
|
||||||
|
[[ "$branch" =~ ^master|develop$ ]] && exit 0
|
||||||
|
|
||||||
issue_num=`echo "$branch" | grep -Po '^[0-9]+(?=-)'`
|
issue_num=`echo "$branch" | grep -Po '^[0-9]+(?=-)'`
|
||||||
|
|
||||||
# Check if issue number is already present
|
# Check if issue number is already present
|
||||||
|
|
Reference in New Issue