From 1a39024190329a002be034d29979e1e8e5902607 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 31 Jul 2016 10:56:52 +0200 Subject: 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 --- scripts/install-git-hooks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3-24-g4f1b