summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d961228)
sshOpts is empty by default and assigned only once. Don't suggest that
this line is supposed to add to an existing value.
c.sshRemote = remote
if sshConfig != "" {
c.sshRemote = remote
if sshConfig != "" {
- c.sshOpts = append(c.sshOpts, "-F", sshConfig)
+ c.sshOpts = []string{"-F", sshConfig}
}
c.cmd = exec.Command("ssh",
append(append([]string{}, c.sshOpts...),
}
c.cmd = exec.Command("ssh",
append(append([]string{}, c.sshOpts...),