Use git describe correctly

This commit is contained in:
Hector Sanjuan 2020-05-19 10:14:44 +02:00
parent 1806273f2f
commit a8bccd2f1a

View File

@ -32,7 +32,7 @@ fi
# Actual releases, commit and make an annotated tag with all the commits
# since the last.
git commit -S -m "Release v${version}"
lastver=`git describe`
lastver=`git describe --abrev=0`
echo "Tag for Release ${version}" > tag_annotation
echo >> tag_annotation
git log --pretty=oneline ${lastver}..HEAD >> tag_annotation