Skip to content

Commit

Permalink
fix(version): use the travis tag for the version
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pawanpraka1 authored and kmova committed May 14, 2020
1 parent 34cc65d commit 34904eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildscripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 34904eb

Please sign in to comment.