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 != "" {