From: Daniel Wagner Date: Wed, 5 Apr 2023 06:27:53 +0000 (+0200) Subject: build: Fetch all references before using git describe X-Git-Tag: v2.5~192 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e417662000247ff84c4b10e6d233381b5d0f7853;p=users%2Fsagi%2Fnvme-cli.git 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 --- 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)