mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 22:21:21 +00:00
use get rev-parse --short HEAD everywhere instead of GitCommit[:8]
This commit is contained in:
parent
ebdc7ddf20
commit
b3e1341e44
@ -5,15 +5,16 @@ const Min = "12"
|
|||||||
const Fix = "1"
|
const Fix = "1"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// The full version string
|
// Version is the current version of Tendermint
|
||||||
|
// Must be a string because scripts like dist.sh read this file.
|
||||||
Version = "0.12.1"
|
Version = "0.12.1"
|
||||||
|
|
||||||
// GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse HEAD)"
|
// GitCommit is the current HEAD set using ldflags.
|
||||||
GitCommit string
|
GitCommit string
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
if GitCommit != "" {
|
if GitCommit != "" {
|
||||||
Version += "-" + GitCommit[:8]
|
Version += "-" + GitCommit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user