xemu-version.sh: Add --tags arg to `git describe`

This commit is contained in:
Matt Borgerson 2022-02-06 13:52:19 -07:00 committed by mborgerson
parent a1c02b793e
commit c41abd211b
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ XEMU_BRANCH=$( \
XEMU_VERSION=$( \
cd "$dir"; \
if test -e .git; then \
git describe --match 'xemu-v*' | cut -c 7- | tr -d '\n'; \
git describe --tags --match 'xemu-v*' | cut -c 7- | tr -d '\n'; \
elif test -e XEMU_VERSION; then \
cat XEMU_VERSION; \
fi)