I had add an git hook when commit code it will do code format check . the executor command run in sourcetree always got an error like this :
bash /myresponsedir/git_hook/hooks/commit-msg-hook/git-commit-format.sh
======start git format========
[0;31m please install clang-format, mac: brew install clang-format [0m
the git hook can works fine in terminal. but failed in sourcetree.
In previous version i remember it works fine in sourcetree, but when I update to 4.2.2(250), it always failed.