mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
commit
ee1fcfbeca
1 changed files with 2 additions and 3 deletions
|
|
@ -87,9 +87,8 @@ def run_hook(
|
||||||
# automated cleanup of docker images.
|
# automated cleanup of docker images.
|
||||||
build_docker_image(hook.prefix, pull=False)
|
build_docker_image(hook.prefix, pull=False)
|
||||||
|
|
||||||
hook_cmd = hook.cmd
|
entry_exe, *cmd_rest = hook.cmd
|
||||||
entry_exe, cmd_rest = hook.cmd[0], hook_cmd[1:]
|
|
||||||
|
|
||||||
entry_tag = ('--entrypoint', entry_exe, docker_tag(hook.prefix))
|
entry_tag = ('--entrypoint', entry_exe, docker_tag(hook.prefix))
|
||||||
cmd = docker_cmd() + entry_tag + cmd_rest
|
cmd = (*docker_cmd(), *entry_tag, *cmd_rest)
|
||||||
return helpers.run_xargs(hook, cmd, file_args, color=color)
|
return helpers.run_xargs(hook, cmd, file_args, color=color)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue