grumphp icon indicating copy to clipboard operation
grumphp copied to clipboard

Hook still present after removing GrumPHP

Open tombevers opened this issue 11 years ago • 2 comments

After removing GrumPHP with composer, the hook referring to the GrumPHP is still present. This prevents me from committing unless I remove the hook manually.

This can be annoying for people just trying out GrumPHP and they decide to remove it from their project.

tombevers avatar Jul 02 '15 10:07 tombevers

Hello @tombevers,

I tested this issue with following set of commands:

mkdir grumtest
cd grumtest
composer init
composer require --dev phpro/grumphp
composer remove phpro/grumphp

The command outputs: GrumPHP stopped sniffing your commits! Too bad ... The git hook is removed.

Next I tried by manually remove the phpro/grumphp entry from composer.json, followed by a composer update. The same result.

Can you tell me how to reproduce this issue? Maybe you don't have write access to the git hook, for example in a vagrant box? Maybe you deleted the folder from the vendor?

Thanks for reporting!

veewee avatar Jul 02 '15 18:07 veewee

I tried it again and it works as supposed to ... I can't reproduce it anymore.

tombevers avatar Jul 03 '15 06:07 tombevers