stevenharman / git_tracker

Some simple tricks that make working with Pivotal Tracker even better... and easier... um, besier!
https://github.com/stevenharman/git_tracker
MIT License
170 stars 11 forks source link

Tower Support #20

Closed tgandee79 closed 8 years ago

tgandee79 commented 8 years ago

I had to PATH="$PATH:/usr/local/bin" to the top of the hook file for Tower Git client to recognize the git-tracker command.

stevenharman commented 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 trackerthat 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.

tgandee79 commented 8 years ago

thanks Steven.