mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-09 10:32:31 -06:00
Return the actual return code
This commit is contained in:
@@ -27,7 +27,7 @@ def run_hook(hook, file_args):
|
||||
)
|
||||
ret = process.communicate()
|
||||
|
||||
return (0,) + ret
|
||||
return (process.returncode,) + ret
|
||||
|
||||
return local['bash'][
|
||||
'-c', ' '.join(
|
||||
|
||||
Reference in New Issue
Block a user