summaryrefslogtreecommitdiffstats
path: root/scripts/hooks-wrapper.sh
blob: 2730d3394f15d79e9b0763efcd414370e8d0b010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
if [ -x $0.local ]; then
    $0.local "$@" || exit $?
fi

basename=$(basename "$0")
hooks_dir="$GIT_DIR/../git-hooks"
hook="$hooks_dir/$basename"

if [ -x "$hook" ]; then
    "$hook" "$@" || exit $?
fi