gitui: husky pre-commit hooks not run
Describe the bug
With husky I added a precommit hook to build my project before commiting it.
git commit
does respect this and builds my project prior to commit.
gitui commit does not.
To Reproduce Steps to reproduce the behavior:
- Add a precommit hook
- Commit via CLI to verify the precommit hook is working
- Commit via gitui
- precommit hook is not executed
Expected behavior A precommit hook should be respected by gitui
Context (please complete the following information):
- OS/Distro + Version: [
Windows 21H1
] - GitUI Version [
0.18.0
]
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (11 by maintainers)
yeah, the previous comment was me being very stupid and i dont want to talk about it… 😆
my first test was without any code and just
echo "executing pre-commit hook" exit 1
second was trying some frontend linting
echo "executing pre-commit hook" npm run lint --prefix frontend
last test was backend c# linting
echo "executing pre-commit hook" dotnet format --verify-no-changes backend
every single one returns a non zero exitcode, but i dont see any output…