Commit graph

2 commits

Author SHA1 Message Date
Konstantin Alekseev 49ca8ce7f7 pre-commit: 1.21.0 -> 2.4.0 2020-06-02 13:23:29 -07:00
Wael Nasreddine 1882d20155
pre-commit: installed git hook should have full path to binary (#77638)
pre-commit currently install impure Git hooks that look for the
`pre-commit` binary in PATH. If the user has `pre-commit` loaded via a
nix-shell instead of having it installed then GUI editors, such as
Intellij, won't be able to use Git commit because the hook fails trying
to look for the `pre-commit` binary in PATH.

This patch updates the hook template to use the hardcoded path to the
`pre-commit` binary if it was found, fallback to using the one from
PATH.
2020-02-01 10:05:42 -08:00