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:
parent
9ed904241f
commit
6a77f9f2c5
1 changed files with 1 additions and 1 deletions
|
@ -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`; \
|
||||
|
|
Loading…
Reference in a new issue