aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install-hooks.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/install-hooks.sh b/scripts/install-hooks.sh
new file mode 100755
index 0000000..02e0cfc
--- /dev/null
+++ b/scripts/install-hooks.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -eu
+cd "$(dirname "$0")/.."
+git config core.hooksPath .githooks
+echo "git hooks: core.hooksPath=.githooks (pre-push runs 'make gate')"