Only use tag in trunk_version.h if it is *exactly* that commit

[CONFIGURATION]
* BUG: Only use tag in trunk_version.h if it is *exactly* that commit
This commit is contained in:
Tobias Boege 2018-05-05 18:07:50 +02:00
parent 9ed904241f
commit 6a77f9f2c5

View file

@ -13,7 +13,7 @@ trunk_version.h:
elif test -d ../.git ; then \
GIT_BRANCH=`git rev-parse --abbrev-ref HEAD`; \
if test \! -e ../.git/refs/heads/$$GIT_BRANCH -o ../.git/refs/heads/$$GIT_BRANCH -nt trunk_version.h; then \
if GIT_TAG=$$(git describe $$GIT_BRANCH 2>/dev/null) ; then \
if GIT_TAG=$$(git describe --exact-match $$GIT_BRANCH 2>/dev/null) ; then \
GIT_BRANCH="$$GIT_TAG"; \
fi; \
GIT_HASH=`git rev-parse --short HEAD`; \