diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-31 17:43:33 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-31 17:43:33 -0700 |
commit | c52557f0a969e539138b0fdd4d7dd25f8795b509 (patch) | |
tree | 128bcfab061bc5f7c703dbbfed9ec6c209e71f7e /git-setup | |
parent | dd2b6e83987786dbd53113fa984630119334925d (diff) |
wip
Diffstat (limited to 'git-setup')
-rwxr-xr-x | git-setup | 6 |
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 |