From 048b04b885c804cc6780f4a34b1993c5d5c76f2a Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Wed, 1 Jun 2022 09:38:19 +0200 Subject: [PATCH] make: Fix version PATCH calculation --- makefiles/Makefile.port.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefiles/Makefile.port.mk b/makefiles/Makefile.port.mk index 7674a86c17..69e2bc6328 100644 --- a/makefiles/Makefile.port.mk +++ b/makefiles/Makefile.port.mk @@ -271,7 +271,7 @@ ifneq ($(wildcard .git),) $(warning you are using a shallow copy) GIT_REVISION:= 9999 else - GIT_REVISION:= $(shell git rev-list --count HEAD) + GIT_REVISION:= $(shell git rev-list --count v$(OR_TOOLS_MAJOR).0..HEAD) endif GIT_HASH:= $(shell git rev-parse --short HEAD) else