From 63f53db88a0016c3ea21976c9cff1bb163f1abd9 Mon Sep 17 00:00:00 2001 From: RahatHameed Date: Wed, 13 Dec 2023 11:04:38 +0100 Subject: [PATCH] OXDEV-7675 Set GitHook directory path --- git-hooks/init.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/git-hooks/init.sh b/git-hooks/init.sh index 419b6ae..881bf10 100755 --- a/git-hooks/init.sh +++ b/git-hooks/init.sh @@ -9,6 +9,7 @@ function setup_git_hooks() MODULE_PATH=$(git rev-parse --show-toplevel) PRE_COMMIT_HOOK_FILE_PATH=$MODULE_PATH/.git/hooks/pre-commit + git config --local core.hooksPath .git/hooks echo "Add hook command to pre-commit file $PRE_COMMIT_HOOK_FILE_PATH" if ! [ -f "${PRE_COMMIT_HOOK_FILE_PATH}" ];then