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 --- git-hooks/post-merge | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'git-hooks/post-merge') diff --git a/git-hooks/post-merge b/git-hooks/post-merge index 358290088..1fc8b582c 100755 --- a/git-hooks/post-merge +++ b/git-hooks/post-merge @@ -14,6 +14,10 @@ if [ ! $fresh_clone ] && [[ -z "$changes" ]]; then exit fi +if echo "$changes" | grep scripts/install-git-hooks.sh; then + scripts/install-git-hooks.sh +fi + # Make sure submodules are up to date git submodule update --init --recursive -- cgit v1.2.3-24-g4f1b