2021-12-19 01:06:50 +00:00
|
|
|
diff --git a/pre_commit/resources/hook-tmpl b/pre_commit/resources/hook-tmpl
|
2022-10-21 18:38:19 +00:00
|
|
|
index 53d29f9..9b5dc2c 100755
|
2021-12-19 01:06:50 +00:00
|
|
|
--- a/pre_commit/resources/hook-tmpl
|
|
|
|
+++ b/pre_commit/resources/hook-tmpl
|
2022-10-21 18:38:19 +00:00
|
|
|
@@ -10,11 +10,4 @@ ARGS=(hook-impl)
|
2021-12-19 01:06:50 +00:00
|
|
|
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
|
2022-10-21 18:38:19 +00:00
|
|
|
- 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[@]}"
|