From e417662000247ff84c4b10e6d233381b5d0f7853 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Wed, 5 Apr 2023 08:27:53 +0200 Subject: [PATCH] build: Fetch all references before using git describe The release script is using git describe to get the references string of the library. The returned string validated if it is a valid release string, e.g. v1.4. If not we abort the operation. Thus we need to make sure that we have all references including the tags, thus do a git fetch --all first. Signed-off-by: Daniel Wagner --- release.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/release.sh b/release.sh index b4ae81c9..f95d6f7e 100755 --- a/release.sh +++ b/release.sh @@ -55,6 +55,8 @@ else exit 1 fi +git -C subprojects/libnvme fetch --all + # extract the vesion string from libnvme by using the ref # defined in libnvme.wrap. libnvme_ref=$(sed -n "s/revision = \([0-9a-z]\+\)/\1/p" subprojects/libnvme.wrap) -- 2.50.1