tarmolov / git-hooks-js

A tool to manage and run project git hooks
167 stars 30 forks source link

Running --uninstall twice removes the preexisting hooks #53

Closed getsnoopy closed 6 years ago

getsnoopy commented 6 years ago

When running the CLI script with --install, it backs up the preexisting Git hooks in a hooks.old directory. The reverse happens when running it with --uninstall, but it can be run twice to delete the preexisting hooks. This should be changed so that it can only be uninstalled once.