You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This worked before (kind of) - if the pre-commit hook passed it would allow the commit, and if the pre-commit hook failed it would silently ignore the error and do nothing. I'm super happy to see the pop-up error, but sad that PATH is not passed through from the environment.
Steps to Reproduce
Create a pre-commit hook that calls a script outside of the aforementioned path
Attempt to commit and see the error
Expected behavior:
pre-commit hook inherits PATH from environment
Actual behavior:
pre-commit hook has hard-coded PATH that cannot be influenced by the environment
Git and its child processes should now see all PATH entries that Atom itself does. Care to apm upgrade and confirm that it works for you?
If it doesn't, maybe try running process.env in the Atom dev tools to see what Atom thinks your PATH is. I know that there's some ✨ magic ✨ that Atom does on launch to try to keep it consistent with user expectations but I admit I haven't dug into that myself 😄
Tested - this fixed the problem with the hook, and also allows the GPG signing to work. (My GPG binary is /usr/local/bin/gpg and I was getting an error on that as well, as I noted in chat.)
Activity
smashwilson commentedon May 9, 2017
Git and its child processes should now see all
PATHentries that Atom itself does. Care toapm upgradeand confirm that it works for you?If it doesn't, maybe try running
process.envin the Atom dev tools to see what Atom thinks your PATH is. I know that there's some ✨ magic ✨ that Atom does on launch to try to keep it consistent with user expectations but I admit I haven't dug into that myself 😄kpaulisse commentedon May 9, 2017
Tested - this fixed the problem with the hook, and also allows the GPG signing to work. (My GPG binary is
/usr/local/bin/gpgand I was getting an error on that as well, as I noted in chat.)smashwilson commentedon May 9, 2017
👍 Excellent, thanks for confirming!