We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca0b52b commit a159383Copy full SHA for a159383
bin/version
@@ -2,9 +2,10 @@
2
3
# Return the version string used to describe this version of Metabase.
4
5
-TAG=$(git describe origin/master --tags --abbrev=0)
+TAG=$(git name-rev --tags --name-only HEAD)
6
+TAG=${TAG%^0}
7
HASH=$(git show-ref --head --hash=7 head) # first 7 letters of hash should be enough; that's what GitHub uses
-BRANCH=$(git symbolic-ref --short HEAD)
8
+BRANCH=$(git rev-parse --abbrev-ref HEAD)
9
DATE=$(git log -1 --pretty=%ad --date=short)
10
11
echo "$TAG $HASH $BRANCH $DATE"
0 commit comments