lefthook icon indicating copy to clipboard operation
lefthook copied to clipboard

Fast and powerful Git hooks manager for any type of projects.

Results 148 lefthook issues
Sort by recently updated
recently updated
newest added

Hi, when running pre-commit hook (either by `git commit` or by `lefthook run`) I get "command not found" error although in command line and in shell scripts everything works just...

Hello For pre push hook, I have a build and run tests steps. Everything seemed fine at first but as the tests grew in numbers, I got the following error...

```sh ❯ git push --set-upstream origin feature/PHW-134 Lefthook v0.7.7 RUNNING HOOKS GROUP: pre-push lint (SKIP. NO FILES FOR INSPECTION) EXECUTE > deps > [email protected] check:deps > node tools/check-deps.js Dependencies ok!...

After upgrading from [v0.7.7](https://github.com/vanyauhalin/lefthook-command-0.7.7) to [v1.0.4](https://github.com/vanyauhalin/lefthook-command-1.0.4), lefthook stopped resolving module paths. Maybe I'm missing something.

I will not say that the problem is with Lefthook. But the examples you can find in the documentation are just that. I would like to ask for advice or...

**Description** When there are files with a `$` in their path, the dollar sign and anything that follows is interpreted as a variable, replaced with an empty string (given that...

In `repare-commit-msg` hook I found next text: ``` #!/bin/sh if [ "{$LEFTHOOK}" = "0" ]; then exit 0 fi # lefthook_version: d41d8cd98f00b204e9800998ecf8427e cmd="lefthook install" if lefthook >/dev/null 2>&1 then exec...

```yml post-checkout: commands: update-submodules: run: printf '%s\n' {all_files} ``` I expected the submodules we're using to appear in the `{all_files}` but it wasn't the case. I think it should display...

Lefthook seems focused on running commands against changed files. Unfortunately this causes issues when a user stages some changes then makes more changes but does not stage them then commits...

duplicate
enhancement

When only using pnpm `call_lefthook` takes 20 seconds to call, because npx just takes so long. Solution is adding `pnpm` before npx (and maybe move yarn before npx too) so...