mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 07:59:15 +02:00
* properly check if -unpushed should be appended in revision.inc
This commit is contained in:
parent
4fdeada0a5
commit
838cc89fac
@ -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