From 36cd78c3be788cfdc3ce92ecd390d9e23073c18e Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw)" <3293172751nss@gmail.com> Date: Tue, 16 May 2023 15:00:51 +0800 Subject: [PATCH] fix: changelog error Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> --- script/make-rules/common.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/make-rules/common.mk b/script/make-rules/common.mk index cf3244eb1..c73c5cacf 100644 --- a/script/make-rules/common.mk +++ b/script/make-rules/common.mk @@ -59,7 +59,9 @@ $(shell mkdir -p $(TMP_DIR)) endif ifeq ($(origin VERSION), undefined) -VERSION := $(shell git describe --abbrev=0 --dirty --always --tags | sed 's/-/./g') +# VERSION := $(shell git describe --abbrev=0 --dirty --always --tags | sed 's/-/./g') #v2.3.3.dirty +VERSION := $(shell git describe --tags --always --match="v*" --dirty | sed 's/-/./g') #v2.3.3.631.g00abdc9b.dirty +# v2.3.3: git tag endif # Check if the tree is dirty. default to dirty(maybe u should commit?)