Use current branch name or tag name when building binaries

This commit is contained in:
Marius 2016-11-11 21:56:38 +01:00
parent 8f5782b73a
commit e4c3d87ba6
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@
set -e
version=$(git rev-parse --abbrev-ref HEAD)
commit=$(git log --format="%H" -n 1)
version="$(git symbolic-ref -q --short HEAD || git describe --tags --exact-match)"
commit="$(git log --format="%H" -n 1)"
function compile {
local os=$1