From 4e81c835d0bec5ee8e28abdd5aeccc94ccf6ab2f Mon Sep 17 00:00:00 2001 From: Rafid Bin Mostofa Date: Thu, 3 Aug 2023 14:18:31 +0600 Subject: [PATCH] fix: allow lightweight tags to determine version --- cmd/mkversion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mkversion.sh b/cmd/mkversion.sh index a5c25902..ab8e9e75 100755 --- a/cmd/mkversion.sh +++ b/cmd/mkversion.sh @@ -43,7 +43,7 @@ if [ -z "$v" ]; then if command -v git >/dev/null; then # not using "--dirty" here until the following bug is fixed: # https://bugs.launchpad.net/snapcraft/+bug/1662388 - v="$(git describe --always | sed -e 's/-/+git/;y/-/./' )" + v="$(git describe --tags --always | sed -e 's/-/+git/;y/-/./' )" o=git fi fi