mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-11 22:10:11 +01:00
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 <pawan@mayadata.io>
This commit is contained in:
parent
9c81ba9587
commit
4a92213505
1 changed files with 1 additions and 1 deletions
|
|
@ -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)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue