git-hooks.nix
git-hooks.nix copied to clipboard
Use the manual hook stage if it exists in the list
Since #415 seems not maintained anymore and it hinders our workflow I've created a simple workaround.
The issue is, that pre-commit without a --hook-stage uses the commit stage.
Now we have ["pre-push" "manual"] as the installStages defined.
Because of that it does not match the current compare and which lead to the the commit stage being used., which contains no tasks.
This change uses the manual stage if it exists anywhere in the installStages list.