mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 14:49:47 +02:00
* check if git executable really exists
(cherry picked from commit a77f5221f3
)
This commit is contained in:
parent
5e06e89678
commit
7fca3c9b1f
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user