Debian Codegraph @

hack/enable-git-hooks.sh

raw
1 #!/usr/bin/env bash
2
3 # enable git commit hooks
4
5 LOCAL_REPO="$(git rev-parse --show-toplevel)"
6 if [[ -d ${LOCAL_REPO}/.git-hooks/ ]]; then
7 git config core.hooksPath "${LOCAL_REPO}/.git-hooks/" > /dev/null
8 fi