Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PATH in hooks #212

Open
luc-j-bourhis opened this issue Dec 11, 2012 · 0 comments
Open

PATH in hooks #212

luc-j-bourhis opened this issue Dec 11, 2012 · 0 comments

Comments

@luc-j-bourhis
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant