blob: 0b6902742223f62686d9fadd29f25848d1cff5e5 (
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="$(pwd)/hooks/$HOOK_NAME"
if [ -x "$REPO_HOOK" ]; then
"$REPO_HOOK" "$@"
fi
# vim: filetype=bash
|