From 4d82c0a3f2fbf2fdaf379d087a66421a9053c1b5 Mon Sep 17 00:00:00 2001 From: Trey Bastian Date: Tue, 7 Apr 2026 13:59:57 +0100 Subject: updated scripts to use new public and allow for repo specific hooks to still exist --- git-hooks/hook-runner | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 git-hooks/hook-runner (limited to 'git-hooks/hook-runner') diff --git a/git-hooks/hook-runner b/git-hooks/hook-runner new file mode 100755 index 0000000..a13e00c --- /dev/null +++ b/git-hooks/hook-runner @@ -0,0 +1,13 @@ +#!/bin/bash + +# when core.hooksPath is set in git all hooks become global this script ensures +# repo specific hooks will still be run +# symlink this file to all missing hook scripts + +HOOK_NAME=$(basename "$0") +REPO_HOOK="$(git rev-parse --git-dir)/hooks/$HOOK_NAME" + +if [ -x "$REPO_HOOK"]; then + "$REPO_HOOK" +fi +# vim: filetype=bash -- cgit v1.2.3