Code

version-gen.sh: Use "describe --tags" to consider non-annotated tags as well.
authorSebastian Harl <sh@tokkee.org>
Thu, 11 Mar 2010 18:10:30 +0000 (19:10 +0100)
committerSebastian Harl <sh@tokkee.org>
Thu, 11 Mar 2010 18:10:30 +0000 (19:10 +0100)
version-gen.sh

index 8797e49673f730de5fdb3380b5c90672e1800264..a54f2af2fdaec5e36a91847c3b8f2268535de5be 100755 (executable)
@@ -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"