I have setup a pre-commit and pre-push hook that runs `npm test`, which in turns executes `gulp test` on my project.
By running the hook manually in the git bash (`.git/hooks/pre-push`) the test passes, also by running git push or git commit.
When committing and pushing with SourceTree, since updating to 1.8.2.2, I get the following error message:
running lint...failed! ./node_modules/.bin/gulp: line 12: node: command not found
That line has:
node "$basedir/../gulp/bin/gulp.js" "$@"
The hooks have been setup automatically with the npm library https://www.npmjs.com/package/precommit-hook.