From cf22f15cfa43249037b0db7e1cc4e545e5c3e182 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Tue, 10 Oct 2023 15:52:15 +0100 Subject: [PATCH] shell: Fix git hook install location FIX Install location for git hooks is relative to $LISA_HOME, so prepend "$LISA_HOME" to the path. --- shell/lisa_shell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/lisa_shell b/shell/lisa_shell index a7df3f2ce..7a1003391 100755 --- a/shell/lisa_shell +++ b/shell/lisa_shell @@ -201,7 +201,7 @@ function _lisa-copy-git-hook { local hooks_dir="$(git -C "$LISA_HOME" rev-parse --git-common-dir)/hooks" local src="$LISA_HOME/tools/git-hooks/$hook" - local dst="$hooks_dir/$hook" + local dst="$LISA_HOME/$hooks_dir/$hook" # Avoid overriding existing hooks unless they are provided by LISA if [[ ! -e "$dst" ]] || grep -q 'LISA-HOOK' "$dst"; then -- GitLab