We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f66b4ab + a6fc3ff commit 0c9555dCopy full SHA for 0c9555d
modules/pre-commit.nix
@@ -366,6 +366,8 @@ in
366
if ! type -t git >/dev/null; then
367
# This happens in pure shells, including lorri
368
echo 1>&2 "WARNING: pre-commit-hooks.nix: git command not found; skipping installation."
369
+ elif [[ ! -f .git ]]; then
370
+ echo 1>&2 "WARNING: pre-commit-hooks.nix: .git not found; skipping installation."
371
else
372
# These update procedures compare before they write, to avoid
373
# filesystem churn. This improves performance with watch tools like lorri
0 commit comments