Skip to content

Commit

Permalink
OXDEV-7675 Set GitHook directory path
Browse files Browse the repository at this point in the history
  • Loading branch information
RahatHameed committed Dec 13, 2023
1 parent e5de9f0 commit 63f53db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-hooks/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63f53db

Please sign in to comment.