2
0
Эх сурвалжийг харах

* properly check if -unpushed should be appended in revision.inc

florian 4 жил өмнө
parent
commit
838cc89fac

+ 1 - 1
compiler/Makefile

@@ -575,7 +575,7 @@ ifneq ($(wildcard ../.git),)
 ifneq ($(GIT),)
 GITDESCRIBE=$(shell $(GIT) describe --dirty)
 REVSTR:=$(word 2,$(subst -, ,$(GITDESCRIBE)))-$(word 3,$(subst -, ,$(GITDESCRIBE)))
-ifneq (git log @{u}..,)
+ifneq ($(shell $(GIT) log @{u}..),)
 REVSTR:=$(REVSTR)-unpushed
 endif
 ifneq ($(word 4,$(subst -, ,$(GITDESCRIBE))),)

+ 1 - 1
compiler/Makefile.fpc

@@ -315,7 +315,7 @@ ifneq ($(wildcard ../.git),)
 ifneq ($(GIT),)
 GITDESCRIBE=$(shell $(GIT) describe --dirty)
 REVSTR:=$(word 2,$(subst -, ,$(GITDESCRIBE)))-$(word 3,$(subst -, ,$(GITDESCRIBE)))
-ifneq (git log @{u}..,)
+ifneq ($(shell $(GIT) log @{u}..),)
 REVSTR:=$(REVSTR)-unpushed
 endif
 ifneq ($(word 4,$(subst -, ,$(GITDESCRIBE))),)