use commit of VERSION file

This commit is contained in:
Jakub Sokołowski 2018-05-24 15:03:12 +02:00
parent 5049d48835
commit f36d55ca70
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ else
LATEST_TAG="0.0.$COMMIT_COUNT"
COMMIT_COUNT_SINCE_TAG=0
else
COMMIT_COUNT_SINCE_TAG=$(git rev-list --count ${LATEST_TAG}..)
VERSION_CHANGE_COMMIT=$(git log -n 1 --pretty=format:%H -- ../../VERSION)
COMMIT_COUNT_SINCE_TAG=$(git rev-list --count ${VERSION_CHANGE_COMMIT}..)
LATEST_TAG=${LATEST_TAG##v} # Remove the "v" from the front of the tag
fi
if [ $COMMIT_COUNT_SINCE_TAG = 0 ]; then