mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-24 15:49:21 +02:00
* properly check if -unpushed should be appended in revision.inc
This commit is contained in:
parent
4401ef32bb
commit
3e3f99c328
@ -575,7 +575,7 @@ ifneq ($(wildcard ../.git),)
|
|||||||
ifneq ($(GIT),)
|
ifneq ($(GIT),)
|
||||||
GITDESCRIBE=$(shell $(GIT) describe --dirty)
|
GITDESCRIBE=$(shell $(GIT) describe --dirty)
|
||||||
REVSTR:=$(word 2,$(subst -, ,$(GITDESCRIBE)))-$(word 3,$(subst -, ,$(GITDESCRIBE)))
|
REVSTR:=$(word 2,$(subst -, ,$(GITDESCRIBE)))-$(word 3,$(subst -, ,$(GITDESCRIBE)))
|
||||||
ifneq (git log @{u}..,)
|
ifneq ($(shell $(GIT) log @{u}..),)
|
||||||
REVSTR:=$(REVSTR)-unpushed
|
REVSTR:=$(REVSTR)-unpushed
|
||||||
endif
|
endif
|
||||||
ifneq ($(word 4,$(subst -, ,$(GITDESCRIBE))),)
|
ifneq ($(word 4,$(subst -, ,$(GITDESCRIBE))),)
|
||||||
|
@ -315,7 +315,7 @@ ifneq ($(wildcard ../.git),)
|
|||||||
ifneq ($(GIT),)
|
ifneq ($(GIT),)
|
||||||
GITDESCRIBE=$(shell $(GIT) describe --dirty)
|
GITDESCRIBE=$(shell $(GIT) describe --dirty)
|
||||||
REVSTR:=$(word 2,$(subst -, ,$(GITDESCRIBE)))-$(word 3,$(subst -, ,$(GITDESCRIBE)))
|
REVSTR:=$(word 2,$(subst -, ,$(GITDESCRIBE)))-$(word 3,$(subst -, ,$(GITDESCRIBE)))
|
||||||
ifneq (git log @{u}..,)
|
ifneq ($(shell $(GIT) log @{u}..),)
|
||||||
REVSTR:=$(REVSTR)-unpushed
|
REVSTR:=$(REVSTR)-unpushed
|
||||||
endif
|
endif
|
||||||
ifneq ($(word 4,$(subst -, ,$(GITDESCRIBE))),)
|
ifneq ($(word 4,$(subst -, ,$(GITDESCRIBE))),)
|
||||||
|
Loading…
Reference in New Issue
Block a user