add the git lfs and git version to the top of 'git lfs env'

This commit is contained in:
Rick Olson 2015-06-17 11:08:22 -06:00
parent 34b9ef3e08
commit 9a2dc26fae

@ -1,6 +1,7 @@
package commands
import (
"github.com/github/git-lfs/git"
"github.com/github/git-lfs/lfs"
"github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra"
)
@ -18,6 +19,15 @@ func envCommand(cmd *cobra.Command, args []string) {
endpoint := config.Endpoint()
gitV, err := git.Config.Version()
if err != nil {
gitV = "Error getting git version: " + err.Error()
}
Print(lfs.UserAgent)
Print(gitV)
Print("")
if len(endpoint.Url) > 0 {
Print("Endpoint=%s", endpoint.Url)
if len(endpoint.SshUserAndHost) > 0 {