summaryrefslogtreecommitdiff
path: root/git-setup
diff options
context:
space:
mode:
Diffstat (limited to 'git-setup')
-rwxr-xr-xgit-setup6
1 files changed, 6 insertions, 0 deletions
diff --git a/git-setup b/git-setup
new file mode 100755
index 0000000..e968cf5
--- /dev/null
+++ b/git-setup
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+set -e
+cd "$(dirname -- "$(readlink -f -- "$0")")"
+if ! [[ -x .git/hooks/post-commit ]]; then
+ ln -sf bin/post-commit .git/hooks/post-commit
+fi