mirror of
https://github.com/status-im/consul.git
synced 2025-01-26 05:29:55 +00:00
Switches to the short form of the SHA for the build info.
This commit is contained in:
parent
40e433358e
commit
e96eedd9e2
@ -15,7 +15,7 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
|||||||
cd "$DIR"
|
cd "$DIR"
|
||||||
|
|
||||||
# Get the git commit
|
# 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_DIRTY="$(test -n "`git status --porcelain`" && echo "+CHANGES" || true)"
|
||||||
GIT_DESCRIBE="$(git describe --tags --always)"
|
GIT_DESCRIBE="$(git describe --tags --always)"
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@ func GetVersion() string {
|
|||||||
if GitDescribe == "" && release == "" {
|
if GitDescribe == "" && release == "" {
|
||||||
release = "dev"
|
release = "dev"
|
||||||
}
|
}
|
||||||
|
|
||||||
if release != "" {
|
if release != "" {
|
||||||
version += fmt.Sprintf("-%s", release)
|
version += fmt.Sprintf("-%s", release)
|
||||||
if GitCommit != "" {
|
if GitCommit != "" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user