v version: show only vhash, when vhash and current_hash are the same

pull/4251/head
Delyan Angelov 2020-04-05 14:47:01 +03:00
parent 35fab2bb7b
commit 44a271d9e9
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@ pub fn vhash() string {
pub fn full_hash() string {
build_hash := vhash()
current_hash := githash(false)
if build_hash == current_hash {
return build_hash
}
return '${build_hash}.${current_hash}'
}