#!/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