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

Preserve existing git hooks path (core.hooksPath)

Open kcmr opened this issue 1 year ago • 1 comments

Hi 👋,

This is a feature request more than an issue.

My suggestion is to preserve the existing hooks path if it is defined in git config core.hooksPath, so this way it's not necessary to take into account this step when you're migrating from Husky, for instance. This is also an issue when you're switching branches with different git hooks setup and requires executing a script in preinstall or prepare like explained here to make it transparent for users.

What do you think?

Thanks

kcmr avatar May 10 '23 16:05 kcmr

This feature would help to migrate from husky =) please feel free to send PR to this repo 🚀

toplenboren avatar Feb 25 '24 16:02 toplenboren