From 8f9c763f67413dcd5aa0eb6807eed7a8a0f7ab2d Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 11 Sep 2017 14:54:48 -0700 Subject: [PATCH] makefile: Make sure to gather git commit-id whenever possible --- makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/makefile b/makefile index 3611dc27..bf147f90 100644 --- a/makefile +++ b/makefile @@ -188,6 +188,13 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) ifneq (,$(strip $(GIT_HOOKS))) $(info *** Warning - Error installing git hooks *** $(GIT_HOOKS)) endif + else + ifneq (commit-id-exists,$(shell if $(TEST) -e .git-commit-id; then echo commit-id-exists; fi)) + GIT_HOOKS = $(shell ./.git/hooks/post-checkout) + ifneq (,$(strip $(GIT_HOOKS))) + $(info *** Warning - Error executing git hooks *** $(GIT_HOOKS)) + endif + endif endif endif LTO_EXCLUDE_VERSIONS =