aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgenerate_version_h.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/generate_version_h.sh b/generate_version_h.sh
index a9b39e4..84166ee 100755
--- a/generate_version_h.sh
+++ b/generate_version_h.sh
@@ -3,7 +3,7 @@
if [ -d ".git" ]
then
# If we have a git directory use that as an information source
- VERSION=`git describe --abbrev=0`
+ VERSION=`git describe --tags --abbrev=0`
HASH=`git show --format="%h" --no-patch master`
BRANCH=`git rev-parse --abbrev-ref HEAD`
elif [ "$#" = "3" ]