[Skiboot] [PATCH trivial] make_version: Use --tags option
Vasant Hegde
hegdevasant at linux.vnet.ibm.com
Thu Mar 12 23:11:06 AEDT 2020
By default (without --all or --tags) git describe only shows annotated
tags. Lets add --tags option so that we generate version based on latest
released version.
Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
make_version.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/make_version.sh b/make_version.sh
index 59fe01c72..fba5ae608 100755
--- a/make_version.sh
+++ b/make_version.sh
@@ -17,7 +17,7 @@ then
version=$(git describe --exact-match 2>/dev/null)
if [ -z "$version" ];
then
- version=$(git describe 2>/dev/null)
+ version=$(git describe --tags 2>/dev/null)
fi
if [ -z "$version" ];
then
--
2.21.1
More information about the Skiboot
mailing list