Skip to content
Permalink
Browse files
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
  • Loading branch information
jihoonson committed Mar 10, 2022
1 parent 6346b95 commit d89d4ff58894a69eda1e584628acec8eafe93168
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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.