From: Sebastian Harl Date: Thu, 11 Mar 2010 18:10:30 +0000 (+0100) Subject: version-gen.sh: Use "describe --tags" to consider non-annotated tags as well. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=26378e37405d8c3a1abbf3d96d7487b7dc521e27;p=template.git version-gen.sh: Use "describe --tags" to consider non-annotated tags as well. --- diff --git a/version-gen.sh b/version-gen.sh index 8797e49..a54f2af 100755 --- a/version-gen.sh +++ b/version-gen.sh @@ -2,7 +2,7 @@ DEFAULT_VERSION="0.0.0.git" -VERSION="$( git describe 2> /dev/null | sed -e 's/foobar-//' )" +VERSION="$( git describe --tags 2> /dev/null | sed -e 's/foobar-//' )" if test -z "$VERSION"; then VERSION="$DEFAULT_VERSION"