mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Fixup log_file commit
This commit is contained in:
parent
71e500a177
commit
840a55bbc3
5 changed files with 17 additions and 18 deletions
|
|
@ -121,10 +121,7 @@ def _run_single_hook(hook, repo, args, skips, cols):
|
|||
for out in (stdout, stderr):
|
||||
assert type(out) is bytes, type(out)
|
||||
if out.strip():
|
||||
output.write_line(
|
||||
out.strip(),
|
||||
logfile_name=hook.get('log_file'),
|
||||
)
|
||||
output.write_line(out.strip(), logfile_name=hook['log_file'])
|
||||
output.write_line()
|
||||
|
||||
return retcode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue