git-hooks.nix icon indicating copy to clipboard operation
git-hooks.nix copied to clipboard

Use the manual hook stage if it exists in the list

Open ThunderKey opened this issue 4 months ago • 0 comments

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.

ThunderKey avatar Jun 12 '25 10:06 ThunderKey