Git hooks doesn't work on Source Tree
Fixed by adding export PATH=/usr/local/bin:$PATH
Source Tree issue
For me I had to open Sourcetree through command line
open /Applications/Sourcetree.app
from here (SourceTree-Hook-failing-because-paths-don-t-seem-to-be-set)