From f36d55ca70d671330acd75edc0f4ee36540af603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 24 May 2018 15:03:12 +0200 Subject: [PATCH] use commit of VERSION file --- ios/scripts/set_xcode_version.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/scripts/set_xcode_version.sh b/ios/scripts/set_xcode_version.sh index 2447038733..7591f21c37 100755 --- a/ios/scripts/set_xcode_version.sh +++ b/ios/scripts/set_xcode_version.sh @@ -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