From 34904eb03ffaa577d8cadca2c0b62bd2b3debf82 Mon Sep 17 00:00:00 2001 From: Pawan Date: Thu, 14 May 2020 15:47:00 +0530 Subject: [PATCH] fix(version): use the travis tag for the version if there are no changes then `git describe --tags `git rev-list --tags --max-count=1` may return older tag as there will be two tags referring to the same commit. Using travis tag here to clearly differentiate the versions. Signed-off-by: Pawan --- buildscripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildscripts/build.sh b/buildscripts/build.sh index 2821d87ea..b37efcda5 100755 --- a/buildscripts/build.sh +++ b/buildscripts/build.sh @@ -34,7 +34,7 @@ fi # Get the version details if [ -n "$TRAVIS_TAG" ]; then - VERSION="$(git describe --tags `git rev-list --tags --max-count=1`)" + VERSION="$TRAVIS_TAG" else BUILDDATE=`date +%m-%d-%Y` SHORT_COMMIT="$(git rev-parse --short HEAD)"