Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to remove pre-commit hook? #121

Open
webketje opened this issue Oct 1, 2021 · 2 comments
Open

Impossible to remove pre-commit hook? #121

webketje opened this issue Oct 1, 2021 · 2 comments

Comments

@webketje
Copy link

webketje commented Oct 1, 2021

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

@BrainMaestro
Copy link
Owner

@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

@webketje
Copy link
Author

webketje commented Nov 3, 2021

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants