From f01fd176ff61a3f37d096939690aa103de054ecc Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Thu, 15 Dec 2016 12:11:10 +0100 Subject: transport: ssh, keeping the original path (#189) --- plumbing/transport/ssh/common.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plumbing/transport/ssh') 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) } -- cgit