☰
Debian Codegraph
@
2.6.0-2
/
/
hack
/
enable-git-hooks.sh
☽
☼
hack/enable-git-hooks.sh
code
plain
raw
BSD-3-Clause
2009-2011 Tobias Klein; 2013 Robin David; 2014-2022 Brian Davis
debian/copyright
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