Merge branch 'hotfix/21.56.9' into master
[gitter.git] / git_hooks / pre-commit
blobd3b50138dd22a469c3bd868157fed67643e4690f
1 #!/bin/bash
2 set -e
3 set -x
5 repo_dir="$(git rev-parse --show-toplevel 2>/dev/null)"
7 branch=`git symbolic-ref HEAD`
8 if [ "$branch" = "refs/heads/master" ]; then
9 echo "Direct commits to the branch master are not allowed" >&2
10 exit 1
13 gulp="$repo_dir/node_modules/.bin/gulp"
14 (cd $repo_dir && npm run precommit-checks)