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?
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?