瀏覽代碼

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

florian 4 年之前
父節點
當前提交
838cc89fac
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      compiler/Makefile
  2. 1 1
      compiler/Makefile.fpc

+ 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))),)