Git hooks should fail on errors; pass args to git hooks (#12322)

* Git hooks should fail on errors

* don't set shell to pass args
This commit is contained in:
Jihoon Son 2022-03-10 09:07:50 +09:00 committed by GitHub
parent 6346b9561d
commit d89d4ff588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,4 +31,4 @@ for hook in os.listdir(hooks_dir):
if not hook.startswith("_"):
command = [os.path.join(hooks_dir, hook)] + args
print("Running {}".format(command))
subprocess.run(command, shell=True)
subprocess.run(command, check=True)