make: Fix version PATCH calculation

This commit is contained in:
Corentin Le Molgat
2022-06-01 09:38:19 +02:00
parent 1ae8b9891b
commit 048b04b885

View File

@@ -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