We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52464c9 commit 061d965Copy full SHA for 061d965
1 file changed
tools/make/lib/init/Makefile
@@ -14,7 +14,7 @@ GIT_HOOKS_DIR ?= $(ROOT_DIR)/.git/hooks
14
TOOLS_GIT_HOOKS_DIR ?= $(TOOLS_DIR)/git/hooks
15
16
# Define the path of the `git pre-push` hook:
17
-GIT_HOOK_PRE_PUSH ?= $(TOOLS_GIT_HOOKS_DIR)/pre-push
+GIT_HOOK_PRE_PUSH ?= pre-push
18
19
20
# TARGETS #
@@ -24,8 +24,8 @@ GIT_HOOK_PRE_PUSH ?= $(TOOLS_GIT_HOOKS_DIR)/pre-push
24
# This target performs initialization tasks, such as installing git hooks, etc.
25
26
init:
27
- @$(CP) $(GIT_HOOK_PRE_PUSH) $(GIT_HOOKS_DIR)
28
- @$(MAKE_EXECUTABLE) $(GIT_HOOK_PRE_PUSH)
+ @$(CP) $(TOOLS_GIT_HOOKS_DIR)/$(GIT_HOOK_PRE_PUSH) $(GIT_HOOKS_DIR)
+ @$(MAKE_EXECUTABLE) $(GIT_HOOKS_DIR)/$(GIT_HOOK_PRE_PUSH)
29
30
.PHONY: init
31
0 commit comments