composer-git-hooks icon indicating copy to clipboard operation
composer-git-hooks copied to clipboard

Impossible to remove pre-commit hook?

Open webketje opened this issue 3 years ago • 2 comments

Hi there,

I changed a pre-commit hook to run on pre-push, ran cghooks update, but now the hook always runs on pre-commit.. All traces of pre-commit have been removed (composer.json, cghooks.lock) yet it still runs, even when opening new terminals.

I'm out of options at this point except composer removing the dependency

webketje avatar Oct 01 '21 08:10 webketje

@webketje you can look into your githooks folder which should be .git/hooks if you haven't changed it. Then you can remove the hooks by deleting the file

BrainMaestro avatar Oct 30 '21 09:10 BrainMaestro

@BrainMaestro thanks, that was it.. However, isn't it a reasonable expectation that this would be handled by cghooks update automatically? If I'm not mistaken composer update & npm update would also do a full update including removal of no longer listed dependencies

webketje avatar Nov 03 '21 14:11 webketje