I am having an issue with implementing git hooks with the Github Desktop client for windows. When I created the hook, it runs a python script that checks the commit message. The weird part is, it runs on perfectly fine on Windows with command prompt, powershell, tortoisegit, webstorm IDE, git bash, also works on Linux terminal, EXCEPT for Github Windows client. reading the debug log, i get this error
GitHub.IO.ProcessException: /usr/bin/env: python: No such file or directory
My already attempted solutions:
- adding 'python' as system variable
- using ruby
- removing '/usr/bin/env' (this will throw an error saying this file doesn't exists)
- adding a .bashrc file solution i found online by putting the python path in my home directory
Does anyone have any idea how to fix this?