diff options
Diffstat (limited to 'plumbing/transport')
-rw-r--r-- | plumbing/transport/ssh/common.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plumbing/transport/ssh/common.go b/plumbing/transport/ssh/common.go index a88a328..03d2fe1 100644 --- a/plumbing/transport/ssh/common.go +++ b/plumbing/transport/ssh/common.go @@ -117,8 +117,5 @@ func (c *command) setAuthFromEndpoint() error { } func endpointToCommand(cmd string, ep transport.Endpoint) string { - directory := ep.Path - directory = directory[1:] - - return fmt.Sprintf("%s '%s'", cmd, directory) + return fmt.Sprintf("%s '%s'", cmd, ep.Path) } |