mirror of https://github.com/containers/podman.git
fix empty newline in version output
When podman is build without git commit information it will print a
empty newline instead. This is undesirable and a regression introduced
in commit 7d22cc88ef.
To test build podman with `go build -mod=vendor -o bin/podman ./cmd/podman`
and check the output of bin/podman version with and without this commit.
[NO NEW TESTS NEEDED]
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
fa0d3c564a
commit
45df70ec1e
|
|
@ -89,9 +89,7 @@ Client:\tPodman Engine
|
|||
Version:\t{{.Version}}
|
||||
API Version:\t{{.APIVersion}}
|
||||
Go Version:\t{{.GoVersion}}
|
||||
{{if .GitCommit -}}
|
||||
Git Commit:\t{{.GitCommit}}
|
||||
{{- end}}
|
||||
{{if .GitCommit -}}Git Commit:\t{{.GitCommit}}\n{{end -}}
|
||||
Built:\t{{.BuiltTime}}
|
||||
OS/Arch:\t{{.OsArch}}
|
||||
{{- end}}
|
||||
|
|
@ -102,9 +100,7 @@ Server:\tPodman Engine
|
|||
Version:\t{{.Version}}
|
||||
API Version:\t{{.APIVersion}}
|
||||
Go Version:\t{{.GoVersion}}
|
||||
{{if .GitCommit -}}
|
||||
Git Commit:\t{{.GitCommit}}
|
||||
{{- end}}
|
||||
{{if .GitCommit -}}Git Commit:\t{{.GitCommit}}\n{{end -}}
|
||||
Built:\t{{.BuiltTime}}
|
||||
OS/Arch:\t{{.OsArch}}
|
||||
{{- end}}{{- end}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue