Describe the bug
Lefthook Git hook returning executable file not found in %PATH% when run from GitHub Desktop however does not throw error when run from Git bash
Version & OS
Version 2.9.3
Windows 1809
Steps to reproduce the behavior
- Install Lefthook to
PATH & run lefthook install
- Add
lefthook.yml to repo folder as follows
pre-commit:
commands:
fix-line-endings:
glob: "*.{config}"
run: unix2dos {staged_files}
- Add
web.config file to repo folder
- Attempt to commit
Expected behavior
pre-commit hook should run just as it does in Git Bash
Actual behavior
pre-commit hook does not run as it does in Git Bash
Screenshots

