Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
18 lines
618 B
Diff
18 lines
618 B
Diff
diff --git a/pre_commit/resources/hook-tmpl b/pre_commit/resources/hook-tmpl
|
|
index 53d29f9..9b5dc2c 100755
|
|
--- a/pre_commit/resources/hook-tmpl
|
|
+++ b/pre_commit/resources/hook-tmpl
|
|
@@ -10,11 +10,4 @@ ARGS=(hook-impl)
|
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
|
ARGS+=(--hook-dir "$HERE" -- "$@")
|
|
|
|
-if [ -x "$INSTALL_PYTHON" ]; then
|
|
- exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}"
|
|
-elif command -v pre-commit > /dev/null; then
|
|
- exec pre-commit "${ARGS[@]}"
|
|
-else
|
|
- echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2
|
|
- exit 1
|
|
-fi
|
|
+exec @pre-commit@/bin/pre-commit "${ARGS[@]}"
|