Skip to content

Commit

Permalink
fix cachix#148: overide local pre-commit binary
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Nov 4, 2022
1 parent 3ebf1c1 commit 3eb97d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ in

installationScript =
''
export PATH=$PATH:${cfg.package}/bin
export PATH=${cfg.package}/bin:$PATH
if ! type -t git >/dev/null; then
# This happens in pure shells, including lorri
echo 1>&2 "WARNING: pre-commit-hooks.nix: git command not found; skipping installation."
Expand Down

0 comments on commit 3eb97d9

Please sign in to comment.