Skip to content

Commit

Permalink
Merge pull request kubernetes#1251 from filbranden/version_string1
Browse files Browse the repository at this point in the history
Use just GitVersion for the -version output
  • Loading branch information
jbeda committed Sep 9, 2014
2 parents 4891367 + 8de322f commit 9ffe6c0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ limitations under the License.

package version

import (
"fmt"
)

// Info contains versioning information.
// TODO: Add []string of api versions supported? It's still unclear
// how we'll want to distribute that information.
Expand Down Expand Up @@ -47,9 +43,5 @@ func Get() Info {

// String returns info as a human-friendly version string.
func (info Info) String() string {
commit := info.GitCommit
if commit == "" {
commit = "(unknown)"
}
return fmt.Sprintf("version %s.%s, build %s", info.Major, info.Minor, commit)
return info.GitVersion
}

0 comments on commit 9ffe6c0

Please sign in to comment.