Closed tgandee79 closed 8 years ago
I believe this is a problem with @gittower and the PATH
they've configured for their Git client. The hooks are called from the Tower process environment, which has it's own configured PATH
.
What I find interesting is that they don't seem to include /usr/local/bin
on that PATH
. That is a pretty standard place for binaries to live on a *nix system. Which is why that's where homebrew
will symlink binaries by default. e.g., brew install git-tracker
will symlink a git-tracker
binary to/usr/local/bin/git-tracker
, and when the hook callsgit tracker
that binary is resolved due to the symlink +PATH
.
There's not much we can do on the git-tracker
side. Maybe add a little blurb to the README
to explain the workaround? Other than that, I'd suggest opening an issue with Tower to see if they can include /usr/local/bin
in the PATH
for their client environment.
thanks Steven.
I had to
PATH="$PATH:/usr/local/bin"
to the top of the hook file for Tower Git client to recognize thegit-tracker
command.