* check if git executable really exists

(cherry picked from commit a77f5221f3)
This commit is contained in:
florian 2021-08-21 20:36:29 +02:00
parent 5e06e89678
commit 7fca3c9b1f
2 changed files with 6 additions and 2 deletions

View File

@ -413,7 +413,9 @@ ifdef SOURCE_DATE_EPOCH
else
GIT_DIR = $(wildcard ../.git)
ifneq ($(GIT_DIR),)
COMPDATESTR:=$(shell $(GIT) log -1 --pretty=%cd --date=format:'%Y/%m/%d')
ifneq ($(GIT),)
COMPDATESTR:=$(shell $(GIT) log -1 --pretty=%cd --date=format:'%Y/%m/%d')
endif
endif
endif
ifdef COMPDATESTR

View File

@ -143,7 +143,9 @@ else
GIT_DIR = $(wildcard ../.git)
ifneq ($(GIT_DIR),)
# ... then take date from head
COMPDATESTR:=$(shell $(GIT) log -1 --pretty=%cd --date=format:'%Y/%m/%d')
ifneq ($(GIT),)
COMPDATESTR:=$(shell $(GIT) log -1 --pretty=%cd --date=format:'%Y/%m/%d')
endif
endif
endif