Skip to content

Commit 10907c7

Browse files
committed
Remove extraneous check for git in PATH
We use our own package now, so this is unnecessary.
1 parent 843e005 commit 10907c7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/pre-commit.nix

+1-4
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,7 @@ in
416416
installationScript =
417417
''
418418
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
419+
if ! ${cfg.gitPackage}/bin/git rev-parse --git-dir &> /dev/null; then
423420
echo 1>&2 "WARNING: git-hooks.nix: .git not found; skipping installation."
424421
else
425422
GIT_WC=`${cfg.gitPackage}/bin/git rev-parse --show-toplevel`

0 commit comments

Comments
 (0)