diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-11-20 15:26:47 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-11-20 15:26:47 +0100 |
commit | 47fc5cbffe92111d8737de8120f168bab4f5c539 (patch) | |
tree | d545c5e557ea49b4b6b23a13b37e6fbdb6061455 /plumbing/transport/ssh/common.go | |
parent | 5cf1147e1b891aee85fdd66d24cb5e8cf86531ce (diff) | |
download | go-git-47fc5cbffe92111d8737de8120f168bab4f5c539.tar.gz |
transport: ssh, fixes override HostKeyCallback from DefaultClient
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 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plumbing/transport/ssh/common.go b/plumbing/transport/ssh/common.go index af79dfb..a844c78 100644 --- a/plumbing/transport/ssh/common.go +++ b/plumbing/transport/ssh/common.go @@ -154,9 +154,7 @@ func overrideConfig(overrides *ssh.ClientConfig, c *ssh.ClientConfig) { f := t.Field(i) vcf := vc.FieldByName(f.Name) vof := vo.FieldByName(f.Name) - if isZeroValue(vcf) { - vcf.Set(vof) - } + vcf.Set(vof) } *c = vc.Interface().(ssh.ClientConfig) |