We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ffa4136 + 0bd1524 commit de7fe58Copy full SHA for de7fe58
1 file changed
Makefile
@@ -4,6 +4,7 @@ SHELL=/bin/bash
4
5
STATIC_ANALYSIS_CHECKER := $(shell which shellcheck 2> /dev/null)
6
LINTER_CHECKER := $(shell which ec 2> /dev/null)
7
+GIT_DIR = $(shell git rev-parse --git-dir 2> /dev/null)
8
9
OS:=
10
ifeq ($(OS),Windows_NT)
@@ -72,7 +73,7 @@ env/example:
72
73
74
pre_commit/install:
75
@echo "Installing pre-commit hooks"
- cp $(PRE_COMMIT_SCRIPTS_FILE) ./.git/hooks/
76
+ cp $(PRE_COMMIT_SCRIPTS_FILE) $(GIT_DIR)/hooks/
77
78
pre_commit/run: test sa lint env/example
79
0 commit comments