summaryrefslogtreecommitdiff
path: root/git-setup
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-12-31 17:43:33 -0700
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-31 17:43:33 -0700
commitc52557f0a969e539138b0fdd4d7dd25f8795b509 (patch)
tree128bcfab061bc5f7c703dbbfed9ec6c209e71f7e /git-setup
parentdd2b6e83987786dbd53113fa984630119334925d (diff)
wip
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