Skip to content

Commit 061d965

Browse files
committed
Fix init recipe when setting permissions
1 parent 52464c9 commit 061d965

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/make/lib/init/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ GIT_HOOKS_DIR ?= $(ROOT_DIR)/.git/hooks
1414
TOOLS_GIT_HOOKS_DIR ?= $(TOOLS_DIR)/git/hooks
1515

1616
# Define the path of the `git pre-push` hook:
17-
GIT_HOOK_PRE_PUSH ?= $(TOOLS_GIT_HOOKS_DIR)/pre-push
17+
GIT_HOOK_PRE_PUSH ?= pre-push
1818

1919

2020
# TARGETS #
@@ -24,8 +24,8 @@ GIT_HOOK_PRE_PUSH ?= $(TOOLS_GIT_HOOKS_DIR)/pre-push
2424
# This target performs initialization tasks, such as installing git hooks, etc.
2525

2626
init:
27-
@$(CP) $(GIT_HOOK_PRE_PUSH) $(GIT_HOOKS_DIR)
28-
@$(MAKE_EXECUTABLE) $(GIT_HOOK_PRE_PUSH)
27+
@$(CP) $(TOOLS_GIT_HOOKS_DIR)/$(GIT_HOOK_PRE_PUSH) $(GIT_HOOKS_DIR)
28+
@$(MAKE_EXECUTABLE) $(GIT_HOOKS_DIR)/$(GIT_HOOK_PRE_PUSH)
2929

3030
.PHONY: init
3131

0 commit comments

Comments
 (0)