mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix filenames with spaces in them.
This commit is contained in:
parent
061ac81682
commit
2ec7a34035
8 changed files with 25 additions and 7 deletions
|
|
@ -15,7 +15,7 @@ def install_environment(repo_cmd_runner, version='default'):
|
|||
|
||||
def run_hook(repo_cmd_runner, hook, file_args):
|
||||
return repo_cmd_runner.run(
|
||||
['xargs'] + shlex.split(hook['entry']) + hook['args'],
|
||||
['xargs', '-0'] + shlex.split(hook['entry']) + hook['args'],
|
||||
stdin=file_args_to_stdin(file_args),
|
||||
retcode=None,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue