diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-12-15 12:11:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-15 12:11:10 +0100 |
commit | f01fd176ff61a3f37d096939690aa103de054ecc (patch) | |
tree | a83300217413584761c7022df383b094f06d3b66 | |
parent | 23574526ad0f6d2ce5ca706ea1fea78c8c29be11 (diff) | |
download | go-git-f01fd176ff61a3f37d096939690aa103de054ecc.tar.gz |
transport: ssh, keeping the original path (#189)
-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) } |