Commit Graph

6 Commits

Author SHA1 Message Date
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
R. RyanTM
d38cf0760e gitAndTools.pre-commit: 1.20.0 -> 1.21.0 2020-01-07 09:47:13 -08:00
R. RyanTM
5524f4df0d gitAndTools.pre-commit: 1.18.3 -> 1.20.0 2019-11-04 08:37:18 -08:00
R. RyanTM
d1e50a5f78 gitAndTools.pre-commit: 1.18.2 -> 1.18.3
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/pre-commit/versions
2019-09-28 08:49:17 -07:00
Boris Babic
1296b10c31 python3Packages.pre-commit: 1.18.1 -> 1.18.2 2019-08-27 18:15:24 +02:00
Jonathan Ringer
2b2d8919e8 pythonPackage.pre-commit: move to python-modules
Add pkgs.gitAndTools.pre-commit alias
  Add pkgs.pre-commit alias
2019-08-17 12:29:39 +02:00