use simpler way whether we are inside a git checkout in conventional build

This commit is contained in:
Axel Kohlmeyer 2019-03-06 18:41:43 -05:00
parent 4e632d1b79
commit 9408dd6e92
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ gitversion:
@echo 'Gathering git version information'
@echo '#ifndef LMP_GIT_VERSION_H' > ${TMPNAME}.lmpgitversion
@echo '#define LMP_GIT_VERSION_H' >> ${TMPNAME}.lmpgitversion
@if (type git && git describe HEAD ) >> /dev/null 2>> /dev/null ; then \
@if (type git && test -e ../.git ) >> /dev/null 2>> /dev/null ; then \
git='true'; \
commit=$$(git rev-parse HEAD); \
branch=$$(git rev-parse --abbrev-ref HEAD); \