]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Run pre-commit hook in bash
authorMichal Sojka <michal.sojka@cvut.cz>
Thu, 17 Dec 2020 07:39:55 +0000 (08:39 +0100)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 17 Dec 2020 08:49:22 +0000 (09:49 +0100)
We need "set -o pipefail" and it needs bash.

contrib/hooks/pre-commit

index 7f4a498cce5b63706e11df6eeb21c8bff4a5a647..77323f1af375f4a6d5e9aa0db8f16d0ba6457a38 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env bash
 
 # git pre-commit hook