diff --git a/scripts/xemu-version.sh b/scripts/xemu-version.sh index 23f14a5f11..5fac211b45 100755 --- a/scripts/xemu-version.sh +++ b/scripts/xemu-version.sh @@ -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)