diff --git a/scripts/build.sh b/scripts/build.sh index 57feada58..7d996f67f 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -15,7 +15,7 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )" cd "$DIR" # Get the git commit -GIT_COMMIT="$(git rev-parse HEAD)" +GIT_COMMIT="$(git rev-parse --short HEAD)" GIT_DIRTY="$(test -n "`git status --porcelain`" && echo "+CHANGES" || true)" GIT_DESCRIBE="$(git describe --tags --always)" diff --git a/version.go b/version.go index 60f4be119..cfb39c84a 100644 --- a/version.go +++ b/version.go @@ -30,7 +30,6 @@ func GetVersion() string { if GitDescribe == "" && release == "" { release = "dev" } - if release != "" { version += fmt.Sprintf("-%s", release) if GitCommit != "" {