mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Remove commit hash uppercase in version and User-Agent strings
This commit is contained in:
parent
cf823f9dcf
commit
3f788efff5
@ -3,7 +3,6 @@ package common
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
"strings"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -28,7 +27,7 @@ func BuildVersionString() string {
|
||||
}
|
||||
|
||||
if commitHash != "" {
|
||||
version += "+" + strings.ToUpper(commitHash)
|
||||
version += "+" + commitHash
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s %s %s BuildDate: %s", programName, version, osArch, buildDate)
|
||||
@ -40,7 +39,7 @@ func BuildUseAgentString() string {
|
||||
theVersion = "SNAPSHOT"
|
||||
}
|
||||
if commitHash != "" {
|
||||
theVersion += "+" + strings.ToUpper(commitHash)
|
||||
theVersion += "+" + commitHash
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s %s (%s/%s)", programName, theVersion, runtime.GOOS, runtime.GOARCH)
|
||||
|
Loading…
Reference in New Issue
Block a user