summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-07-31 10:56:52 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-07-31 11:22:03 +0200
commit1a39024190329a002be034d29979e1e8e5902607 (patch)
tree6f258d7c748159ea6fc190801d76762fb4fa0362 /scripts
parent2a5acd0882180dd5a25d25112594330bbce96c51 (diff)
Install git hooks as relative symlinks
Absolute symlinks break when the installation is moved on the server and provide no value. Also update the post-merge hook so that it performs this change. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install-git-hooks.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-git-hooks.sh b/scripts/install-git-hooks.sh
index 9a76c3e35..05a7c9017 100755
--- a/scripts/install-git-hooks.sh
+++ b/scripts/install-git-hooks.sh
@@ -11,5 +11,5 @@ for hook in $HOOK_NAMES; do
# create the symlink, overwriting the file if it exists
# probably the only way this would happen is if you're using an old version of git
# -- back when the sample hooks were not executable, instead of being named ____.sample
- ln -s -f $SCRIPTS_DIR/hooks-wrapper.sh $HOOK_DIR/$hook
+ ln -r -s -f $SCRIPTS_DIR/hooks-wrapper.sh $HOOK_DIR/$hook
done