Use pipes.quote for executable path · precommit/pre-commit@873dd17 · GitHub
Skip to content

Commit 873dd17

Browse files
committed
Use pipes.quote for executable path
1 parent 6b81fe9 commit 873dd17

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

pre_commit/commands/install_uninstall.py

Lines changed: 2 additions & 1 deletion

pre_commit/resources/hook-tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ popd > /dev/null
99
retv=0
1010
args=""
1111

12-
ENV_PYTHON='{sys_executable}'
12+
ENV_PYTHON={sys_executable}
1313
SKIP_ON_MISSING_CONF={skip_on_missing_conf}
1414

1515
which pre-commit >& /dev/null

tests/commands/install_uninstall_test.py

Lines changed: 3 additions & 2 deletions

0 commit comments

Comments
 (0)