diff --git a/bin/version b/bin/version index 0835db2b4015497bf11a336789550d6b7f5e8c1c..16925539d1d2754a760a7ecd800f875624ffc3e8 100755 --- a/bin/version +++ b/bin/version @@ -1,11 +1,12 @@ #!/usr/bin/env bash -# Return the version string used to describe this version of Metabase. +VERSION="v0.15.0-snapshot" -TAG=$(git name-rev --tags --name-only HEAD) -TAG=${TAG%^0} +# dynamically pull more interesting stuff from latest git commit HASH=$(git show-ref --head --hash=7 head) # first 7 letters of hash should be enough; that's what GitHub uses BRANCH=$(git rev-parse --abbrev-ref HEAD) DATE=$(git log -1 --pretty=%ad --date=short) -echo "$TAG $HASH $BRANCH $DATE" + +# Return the version string used to describe this version of Metabase. +echo "$VERSION $HASH $BRANCH $DATE"