]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
build: Fetch all references before using git describe
authorDaniel Wagner <dwagner@suse.de>
Wed, 5 Apr 2023 06:27:53 +0000 (08:27 +0200)
committerDaniel Wagner <dwagner@suse.de>
Wed, 5 Apr 2023 06:32:31 +0000 (08:32 +0200)
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 <dwagner@suse.de>
release.sh

index b4ae81c9c648a215128177e126e0823580d8c6af..f95d6f7e698739cc84f9a293d0bf7feefc3aaef9 100755 (executable)
@@ -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)