Skip to content

Commit

Permalink
Git hooks should fail on errors; pass args to git hooks (apache#12322)
Browse files Browse the repository at this point in the history
* Git hooks should fail on errors

* don't set shell to pass args
  • Loading branch information
jihoonson authored Mar 10, 2022
1 parent 6346b95 commit d89d4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/run-all-in-dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
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)

0 comments on commit d89d4ff

Please sign in to comment.