diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-11-21 11:44:21 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-11-21 11:44:21 +0100 |
commit | 2f51048cd2599d61d49085dc8ed2d51fe6dadd17 (patch) | |
tree | a08a49d64718262d455ec5f754aac4b4f9b94dab /plumbing/transport/ssh/common.go | |
parent | 97fb5e93083fbe4ea02078312ae2cbca3b145ab1 (diff) | |
download | go-git-2f51048cd2599d61d49085dc8ed2d51fe6dadd17.tar.gz |
transport: made public all the fields and standardize AuthMethod
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
Diffstat (limited to 'plumbing/transport/ssh/common.go')
-rw-r--r-- | plumbing/transport/ssh/common.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/plumbing/transport/ssh/common.go b/plumbing/transport/ssh/common.go index b7722bb..f5bc9a7 100644 --- a/plumbing/transport/ssh/common.go +++ b/plumbing/transport/ssh/common.go @@ -98,8 +98,7 @@ func (c *command) connect() error { } var err error - config := c.auth.clientConfig() - config.HostKeyCallback, err = c.auth.hostKeyCallback() + config, err := c.auth.ClientConfig() if err != nil { return err } @@ -159,7 +158,3 @@ func overrideConfig(overrides *ssh.ClientConfig, c *ssh.ClientConfig) { *c = vc.Interface().(ssh.ClientConfig) } - -func isZeroValue(v reflect.Value) bool { - return reflect.DeepEqual(v.Interface(), reflect.Zero(v.Type()).Interface()) -} |