summaryrefslogtreecommitdiffstats
path: root/scripts/hooks-wrapper.sh
blob: e89a3567d0842d54a8102ef4c4d04efcc70b9899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/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