diff options
| author | Trey Bastian <hello@treybastian.com> | 2026-04-08 14:36:22 +0100 |
|---|---|---|
| committer | Trey Bastian <hello@treybastian.com> | 2026-04-08 14:36:22 +0100 |
| commit | 97c6c6b7823d9d713f836f967fd10cc3facc36ac (patch) | |
| tree | 55b660d91298ed39e72dcfec050d3a3c879618c3 /git-hooks/hook-runner | |
| parent | 4d82c0a3f2fbf2fdaf379d087a66421a9053c1b5 (diff) | |
updated scripts to slightly new workflow
Diffstat (limited to 'git-hooks/hook-runner')
| -rwxr-xr-x | git-hooks/hook-runner | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-hooks/hook-runner b/git-hooks/hook-runner index a13e00c..0b69027 100755 --- a/git-hooks/hook-runner +++ b/git-hooks/hook-runner @@ -5,9 +5,9 @@ # symlink this file to all missing hook scripts HOOK_NAME=$(basename "$0") -REPO_HOOK="$(git rev-parse --git-dir)/hooks/$HOOK_NAME" +REPO_HOOK="$(pwd)/hooks/$HOOK_NAME" -if [ -x "$REPO_HOOK"]; then - "$REPO_HOOK" +if [ -x "$REPO_HOOK" ]; then + "$REPO_HOOK" "$@" fi # vim: filetype=bash |
