avoid fail on empty git describe

pull/3815/head
Miro Stauder 4 years ago
parent 8005b64f4c
commit f0272d58d4

@ -1,7 +1,8 @@
ifndef GIT_VERSION
GIT_VERSION := $(shell git describe --long --abbrev=7)
ifndef GIT_VERSION
$(error GIT_VERSION is not set)
#$(error GIT_VERSION is not set)
GIT_VERSION := 2.2.0
endif
endif

@ -1,7 +1,8 @@
ifndef GIT_VERSION
GIT_VERSION := $(shell git describe --long --abbrev=7)
ifndef GIT_VERSION
$(error GIT_VERSION is not set)
#$(error GIT_VERSION is not set)
GIT_VERSION := 2.2.0
endif
endif

@ -1,7 +1,8 @@
ifndef GIT_VERSION
GIT_VERSION := $(shell git describe --long --abbrev=7)
ifndef GIT_VERSION
$(error GIT_VERSION is not set)
#$(error GIT_VERSION is not set)
GIT_VERSION := 2.2.0
endif
endif

Loading…
Cancel
Save