mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Return the actual return code
This commit is contained in:
parent
0f14d4c072
commit
1a8095e71e
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ def run_hook(hook, file_args):
|
||||||
)
|
)
|
||||||
ret = process.communicate()
|
ret = process.communicate()
|
||||||
|
|
||||||
return (0,) + ret
|
return (process.returncode,) + ret
|
||||||
|
|
||||||
return local['bash'][
|
return local['bash'][
|
||||||
'-c', ' '.join(
|
'-c', ' '.join(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue