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
13 gulp
="$repo_dir/node_modules/.bin/gulp"
14 (cd $repo_dir && npm run precommit-checks
)