Skip to content

PATH in hooks #212

@luc-j-bourhis

Description

@luc-j-bourhis

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions