We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 843e005 commit 10907c7Copy full SHA for 10907c7
modules/pre-commit.nix
@@ -416,10 +416,7 @@ in
416
installationScript =
417
''
418
export PATH=${cfg.package}/bin:$PATH
419
- if ! type -t git >/dev/null; then
420
- # This happens in pure shells, including lorri
421
- echo 1>&2 "WARNING: git-hooks.nix: git command not found; skipping installation."
422
- elif ! ${cfg.gitPackage}/bin/git rev-parse --git-dir &> /dev/null; then
+ if ! ${cfg.gitPackage}/bin/git rev-parse --git-dir &> /dev/null; then
423
echo 1>&2 "WARNING: git-hooks.nix: .git not found; skipping installation."
424
else
425
GIT_WC=`${cfg.gitPackage}/bin/git rev-parse --show-toplevel`
0 commit comments