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 }}
Repository navigation
Lefthook Git hook returning executable file not found in %PATH% #13052
The support is experimental and currently limited to our beta channel. While we believe that this release resolved this issue we're looking for real-world feedback so if you have the ability we'd appreciate it if you could download our beta channel and give it a spin. Ensure the experimental hooks support it's enabled by going to Settings -> Git -> Hooks and making sure the "Load Git hook environment variables from shell" is ticked.
Lefthook maintainer is also here. Yep, there is a problem with $PATH population for hooks when commit is being made from within GitHub Desktop and other GUI tools on various OSes. See also evilmartians/lefthook#178 (comment) for more details.
The support is experimental and currently limited to our beta channel. While we believe that this release resolved this issue we're looking for real-world feedback so if you have the ability we'd appreciate it if you could download our beta channel and give it a spin. Ensure the experimental hooks support it's enabled by going to Settings -> Git -> Hooks and making sure the "Load Git hook environment variables from shell" is ticked.
Activity
bbodenmiller commentedon Oct 1, 2021
Hooks in GitHub desktop don't have access to
$PATH? 🤔Results in:
Envek commentedon Oct 1, 2021
Lefthook maintainer is also here. Yep, there is a problem with
$PATHpopulation for hooks when commit is being made from within GitHub Desktop and other GUI tools on various OSes. See also evilmartians/lefthook#178 (comment) for more details.stacksjb commentedon Jun 6, 2025
I'm still running into this issue 4 years lter? I spent HOURS going crazy wondering why the hook isn't working when pushing from Github Destkop.
niik commentedon Jan 14, 2026
Yesterday we shipped GitHub Desktop 3.5.5-beta1 to our beta channel with improved support for hooks related to committing.
The support is experimental and currently limited to our beta channel. While we believe that this release resolved this issue we're looking for real-world feedback so if you have the ability we'd appreciate it if you could download our beta channel and give it a spin. Ensure the experimental hooks support it's enabled by going to Settings -> Git -> Hooks and making sure the "Load Git hook environment variables from shell" is ticked.