diff --git a/gen_version.sh b/gen_version.sh index 333c95f..04e48eb 100755 --- a/gen_version.sh +++ b/gen_version.sh @@ -1,6 +1,6 @@ #!/bin/sh -v=$(git tag --contains HEAD) +v=$(git tag -l | tail -n1) if [ "$v" = "" ]; then echo "Cannot determine tag." >&2 exit 1