blob: a13e00cf9533fb1c5a0611385e10b4b96564cd6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|