templates/hooks/automatic in pre-commit-0.23.0 vs templates/hooks/automatic in pre-commit-0.24.0
- old
+ new
@@ -7,9 +7,14 @@
# setting up your own environment, you can install the manual hook using:
#
# pre-commit install --manual
#
+# This is a work-around to get GitHub for Mac to be able to run `node` commands
+# https://stackoverflow.com/questions/12881975/git-pre-commit-hook-failing-in-github-for-mac-works-on-command-line
+PATH=$PATH:/usr/local/bin:/usr/local/sbin
+
+
cmd=`git config pre-commit.ruby 2>/dev/null`
if test -n "${cmd}"
then true
elif which rvm >/dev/null 2>/dev/null
then cmd="rvm default do ruby"