Skip to content

Commit f204c4f

Browse files
committed
tools/docker: fix version patch computation
1 parent aa500e9 commit f204c4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/docker/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ OR_TOOLS_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
150150
OR_TOOLS_SHA1 := $(shell git rev-parse --verify HEAD)
151151
# OR_TOOLS_MAJOR & OR_TOOLS_MINOR
152152
include ../../Version.txt
153-
OR_TOOLS_PATCH := $(shell git rev-list --count v${OR_TOOLS_MAJOR}.0..HEAD)
153+
OR_TOOLS_PATCH := $(shell git rev-list --count v${OR_TOOLS_MAJOR}.0..HEAD || echo 0)
154154
OR_TOOLS_VERSION := ${OR_TOOLS_MAJOR}.${OR_TOOLS_MINOR}.${OR_TOOLS_PATCH}
155155
ifdef PRE_RELEASE
156156
OR_TOOLS_VERSION := ${OR_TOOLS_VERSION}-rc

0 commit comments

Comments
 (0)