laullon / gitx

GitX (L) - A gitk clone for OS X
http://gitx.laullon.com/
Other
836 stars 76 forks source link

PATH in hooks #212

Open luc-j-bourhis opened 11 years ago

luc-j-bourhis commented 11 years ago

When committing from gitx, my pre-commit hook has PATH=/usr/bin:/bin:/usr/sbin:/sbin which does not include /opt/local/bin which contains the git I instructed gitx to use. When I work from Terminal.app, it is consistent because /opt/local/bin is in the PATH.

Thus, wouldn't it make more sense to tell gitx about the directory to prepend to the path to find the git we want, instead of specifying the git binary itself?