mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Added shell_escape to shell escape dependencies
This commit is contained in:
parent
3726f07a3f
commit
d6be9cdf7c
3 changed files with 19 additions and 7 deletions
|
|
@ -8,6 +8,7 @@ from pre_commit.languages import helpers
|
|||
from pre_commit.util import CalledProcessError
|
||||
from pre_commit.util import clean_path_on_failure
|
||||
from pre_commit.util import resource_filename
|
||||
from pre_commit.util import shell_escape
|
||||
from pre_commit.util import tarfile_open
|
||||
|
||||
|
||||
|
|
@ -95,9 +96,12 @@ def install_environment(repo_cmd_runner,
|
|||
)
|
||||
if additional_dependencies:
|
||||
ruby_env.run(
|
||||
'cd {prefix} && gem install --no-document ' +
|
||||
' '.join(additional_dependencies)
|
||||
)
|
||||
'cd {prefix} && gem install --no-document {deps}'.format(
|
||||
' '.join(
|
||||
shell_escape(dep) for dep in
|
||||
additional_dependencies
|
||||
)
|
||||
))
|
||||
|
||||
|
||||
def run_hook(repo_cmd_runner, hook, file_args):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue