version: append commit hash to version string

This commit is contained in:
Conner Fromknecht 2018-03-28 14:10:01 -07:00
parent 3d29e9dc66
commit 70038754ff
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

@ -55,6 +55,9 @@ func version() string {
version = fmt.Sprintf("%s+%s", version, build)
}
// Append commit hash of current build to version.
version = fmt.Sprintf("%s commit=%s", version, Commit)
return version
}