Allow arbitrary bytes in output. Resolves #245

This commit is contained in:
Anthony Sottile 2015-07-23 12:59:13 -07:00
parent 826aa4cebd
commit 66b1d39c6e
11 changed files with 104 additions and 50 deletions

View file

@ -22,6 +22,7 @@ def run_hook(env, hook, file_args):
' '.join(['xargs', '-0', '-s4000', hook['entry']] + quoted_args),
stdin=file_args_to_stdin(file_args),
retcode=None,
encoding=None,
)

View file

@ -24,4 +24,5 @@ def run_hook(repo_cmd_runner, hook, file_args):
],
stdin=file_args_to_stdin(file_args),
retcode=None,
encoding=None,
)

View file

@ -17,4 +17,5 @@ def run_hook(repo_cmd_runner, hook, file_args):
# TODO: this is duplicated in pre_commit/languages/helpers.py
stdin=file_args_to_stdin(file_args),
retcode=None,
encoding=None,
)

View file

@ -18,4 +18,5 @@ def run_hook(repo_cmd_runner, hook, file_args):
['xargs', '-0'] + shlex.split(hook['entry']) + hook['args'],
stdin=file_args_to_stdin(file_args),
retcode=None,
encoding=None,
)