From e96eedd9e2efe65c837518617a09a919c9ff6788 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Tue, 19 Jul 2016 15:19:32 -0700 Subject: [PATCH] Switches to the short form of the SHA for the build info. --- scripts/build.sh | 2 +- version.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 57feada585..7d996f67fc 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 60f4be119a..cfb39c84a7 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 != "" {