makefile: remove remnant git hooks which interfere with build
This commit is contained in:
parent
f6906af25a
commit
52615e26ef
1 changed files with 3 additions and 0 deletions
3
makefile
3
makefile
|
@ -226,6 +226,9 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
||||||
ACTUAL_GIT_COMMIT_ID=$(strip $(shell git log -1 --pretty="%H"))
|
ACTUAL_GIT_COMMIT_ID=$(strip $(shell git log -1 --pretty="%H"))
|
||||||
ifneq ($(CURRENT_GIT_COMMIT_ID),$(ACTUAL_GIT_COMMIT_ID))
|
ifneq ($(CURRENT_GIT_COMMIT_ID),$(ACTUAL_GIT_COMMIT_ID))
|
||||||
NEED_COMMIT_ID = need-commit-id
|
NEED_COMMIT_ID = need-commit-id
|
||||||
|
# make sure that the invalidly formatted .git-commit-id file wasn't generated
|
||||||
|
# by legacy git hooks which need to be removed.
|
||||||
|
$(shell rm -f .git/hooks/post-checkout .git/hooks/post-commit .git/hooks/post-merge)
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
NEED_COMMIT_ID = need-commit-id
|
NEED_COMMIT_ID = need-commit-id
|
||||||
|
|
Loading…
Add table
Reference in a new issue