diff options
| author | Trey Bastian <hello@treybastian.com> | 2026-04-07 13:59:57 +0100 |
|---|---|---|
| committer | Trey Bastian <hello@treybastian.com> | 2026-04-07 13:59:57 +0100 |
| commit | 4d82c0a3f2fbf2fdaf379d087a66421a9053c1b5 (patch) | |
| tree | f7c0e1ee11720f3754c9ac4314da08f51615e65c /git-hooks/hook-runner | |
| parent | ebee77682c7f18d08203c1d411c8c115c5fa21a9 (diff) | |
updated scripts to use new public and allow for repo specific hooks to still exist
Diffstat (limited to 'git-hooks/hook-runner')
| -rwxr-xr-x | git-hooks/hook-runner | 13 |
1 files changed, 13 insertions, 0 deletions
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 |
