Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 22.05 15 lines 598 B view raw
1diff --git a/pre_commit/resources/hook-tmpl b/pre_commit/resources/hook-tmpl 2index 53d29f9..66a8ad3 100755 3--- a/pre_commit/resources/hook-tmpl 4+++ b/pre_commit/resources/hook-tmpl 5@@ -10,9 +10,7 @@ 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+if command -v pre-commit > /dev/null; then 13 exec pre-commit "${ARGS[@]}" 14 else 15 echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2