at 24.11-pre 618 B view raw
1diff --git a/pre_commit/resources/hook-tmpl b/pre_commit/resources/hook-tmpl 2index 53d29f9..9b5dc2c 100755 3--- a/pre_commit/resources/hook-tmpl 4+++ b/pre_commit/resources/hook-tmpl 5@@ -10,11 +10,4 @@ ARGS=(hook-impl) 6 HERE="$(cd "$(dirname "$0")" && pwd)" 7 ARGS+=(--hook-dir "$HERE" -- "$@") 8 9-if [ -x "$INSTALL_PYTHON" ]; then 10- exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}" 11-elif command -v pre-commit > /dev/null; then 12- exec pre-commit "${ARGS[@]}" 13-else 14- echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2 15- exit 1 16-fi 17+exec @pre-commit@/bin/pre-commit "${ARGS[@]}"