lein-githooks
lein-githooks copied to clipboard
Split commands on whitespace instead of non word characters
Make commands with options possible (e. g. git stash -k)
This change appears to also be necessary if the lein command itself includes non-word characters, e.g. lein clj-kondo
. In this case, aliasing can be used as a workaround, but isn't ideal.
This PR looks like it would solve issues #1 and #2
For anyone else looking at this, although this project appears to be abandoned, I just tried https://clojars.org/rasom/lein-githooks and it ran :pre-commit ["sh bin/pre-commit]
just fine.