summaryrefslogtreecommitdiff
path: root/git-setup
blob: 775c7aedbf58563fc2f0e000c839b162fe2be5e0 (plain)
1
2
3
4
5
6
#!/usr/bin/env bash
set -e
cd "$(dirname -- "$(readlink -f -- "$0")")"
if ! [[ -x .git/hooks/post-commit ]]; then
	ln -srf bin/post-commit .git/hooks/post-commit
fi