2016-05-13 16:38:06 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"runtime"
|
|
|
|
"strings"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
GitCommit string
|
|
|
|
VersionDesc string
|
2019-05-08 18:40:24 +00:00
|
|
|
Vendor string
|
2016-05-13 16:38:06 +00:00
|
|
|
)
|
|
|
|
|
2016-11-21 21:17:24 +00:00
|
|
|
const (
|
2020-08-26 16:49:33 +00:00
|
|
|
Version = "2.12.0"
|
2016-11-21 21:17:24 +00:00
|
|
|
)
|
|
|
|
|
2016-05-13 16:38:06 +00:00
|
|
|
func init() {
|
|
|
|
gitCommit := ""
|
|
|
|
if len(GitCommit) > 0 {
|
|
|
|
gitCommit = "; git " + GitCommit
|
|
|
|
}
|
2019-05-08 18:40:24 +00:00
|
|
|
if len(Vendor) == 0 {
|
|
|
|
Vendor = "GitHub"
|
|
|
|
}
|
|
|
|
VersionDesc = fmt.Sprintf("git-lfs/%s (%s; %s %s; go %s%s)",
|
2016-05-13 16:38:06 +00:00
|
|
|
Version,
|
2019-05-08 18:40:24 +00:00
|
|
|
Vendor,
|
2016-05-13 16:38:06 +00:00
|
|
|
runtime.GOOS,
|
|
|
|
runtime.GOARCH,
|
|
|
|
strings.Replace(runtime.Version(), "go", "", 1),
|
|
|
|
gitCommit,
|
|
|
|
)
|
|
|
|
}
|