[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH] scripts/qemu-version.sh: Always describe tag version
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH] scripts/qemu-version.sh: Always describe tag version |
Date: |
Thu, 24 Sep 2020 18:35:09 +0200 |
I'm not sure why sometime I get this error:
$ make
Generating qemu-version.h with a meson_exe.py custom command
fatal: No tags can describe 'dc9f825f99eb5dc82f127e6c95fbe3a503e11346'.
Try --always, or create some tags.
While to --always option is not clear in GIT-DESCRIBE(1):
--always
Show uniquely abbreviated commit object as fallback.
using it works and fix my builds:
$ git describe --match 'v*' --dirty --always
dc9f825f99e-dirty
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
scripts/qemu-version.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/qemu-version.sh b/scripts/qemu-version.sh
index 03128c56a2c..a7135511588 100755
--- a/scripts/qemu-version.sh
+++ b/scripts/qemu-version.sh
@@ -9,7 +9,7 @@ version="$3"
if [ -z "$pkgversion" ]; then
cd "$dir"
if [ -e .git ]; then
- pkgversion=$(git describe --match 'v*' --dirty | echo "")
+ pkgversion=$(git describe --match 'v*' --dirty --always | echo "")
fi
fi
--
2.26.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [RFC PATCH] scripts/qemu-version.sh: Always describe tag version,
Philippe Mathieu-Daudé <=