Makefile.unix:versioning insure it is a .git dir
An out-of-tree build may have a .git file that is from a submodule. Once we find a .git file check if this is really a working dir.
This commit is contained in:
parent
c91a81149d
commit
3ec12a84c2
@ -25,9 +25,13 @@ include $(TOPDIR)/Make.defs
|
||||
|
||||
GIT_DIR = $(if $(wildcard $(TOPDIR)$(DELIM).git),y,)
|
||||
|
||||
ifeq ($(GIT_DIR),y)
|
||||
GIT_PRESENT = `git rev-parse --git-dir 2> /dev/null`
|
||||
endif
|
||||
|
||||
# In case we cannot get version information from GIT
|
||||
|
||||
ifneq ($(GIT_DIR),y)
|
||||
ifneq ($(GIT_PRESENT),true)
|
||||
-include $(TOPDIR)/.version
|
||||
|
||||
# In case the version file does not exist
|
||||
|
Loading…
x
Reference in New Issue
Block a user