add the git lfs and git version to the top of 'git lfs env'
This commit is contained in:
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user