OSDN Git Service

Provide monotone revission numbers in version.sh
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 1 Feb 2011 11:19:49 +0000 (12:19 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 1 Feb 2011 11:19:49 +0000 (12:19 +0100)
version.sh

index 3269e03..d1cf15d 100755 (executable)
@@ -18,7 +18,7 @@ fi
 
 # check for git short hash
 if ! test "$revision"; then
-    revision=$(cd "$1" && git describe --always 2> /dev/null)
+    revision=$(cd "$1" && git describe --tags --match N 2> /dev/null)
     test "$revision" && revision=git-$revision
 fi