Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:CaaSP:Head:ControllerNode
helm
0001_fix_short_version.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001_fix_short_version.patch of Package helm
Index: helm-2.8.2/cmd/helm/version.go =================================================================== --- helm-2.8.2.orig/cmd/helm/version.go +++ helm-2.8.2/cmd/helm/version.go @@ -130,7 +130,10 @@ func getK8sVersion() (*apiVersion.Info, } func formatVersion(v *pb.Version, short bool) string { - if short { + if short && v.GitCommit != "" { + if len(v.GitCommit) < 7 { + return fmt.Sprintf("%s+g%s", v.SemVer, v.GitCommit) + } return fmt.Sprintf("%s+g%s", v.SemVer, v.GitCommit[:7]) } return fmt.Sprintf("%#v", v)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor