From 95f356d64eda7b6db52c8ece7b2eb36b4f84719b Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Tue, 5 Sep 2017 09:29:18 -0700 Subject: [PATCH] Also add run to the other invocations --- pre_commit/resources/hook-tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pre_commit/resources/hook-tmpl b/pre_commit/resources/hook-tmpl index e18812ff..7e48d1ea 100644 --- a/pre_commit/resources/hook-tmpl +++ b/pre_commit/resources/hook-tmpl @@ -59,10 +59,10 @@ if ((WHICH_RETV == 0)); then pre-commit run $args --config {config_file} PRE_COMMIT_RETV=$? elif ((ENV_PYTHON_RETV == 0)); then - "$ENV_PYTHON" -m pre_commit.main $args + "$ENV_PYTHON" -m pre_commit.main run $args PRE_COMMIT_RETV=$? else - python -m pre_commit.main $args + python -m pre_commit.main run $args PRE_COMMIT_RETV=$? fi