summaryrefslogtreecommitdiff
path: root/scripts/install-hooks.sh
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-20 22:08:08 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-20 22:08:08 +0200
commit6ff31279d38bd3b814f19b1fb63933544139f6cf (patch)
treee0a64a48df9d484b52829371d648698471895ffe /scripts/install-hooks.sh
parent29969ad294d1654f6eca23a16c83b84bbf7f9bfe (diff)
downloadbokf-6ff31279d38bd3b814f19b1fb63933544139f6cf.tar.gz
bokf-6ff31279d38bd3b814f19b1fb63933544139f6cf.zip
build: make gate with WERROR and a pre-push hook
Diffstat (limited to 'scripts/install-hooks.sh')
-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')"