aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-12-15 12:11:10 +0100
committerGitHub <noreply@github.com>2016-12-15 12:11:10 +0100
commitf01fd176ff61a3f37d096939690aa103de054ecc (patch)
treea83300217413584761c7022df383b094f06d3b66 /plumbing
parent23574526ad0f6d2ce5ca706ea1fea78c8c29be11 (diff)
downloadgo-git-f01fd176ff61a3f37d096939690aa103de054ecc.tar.gz
transport: ssh, keeping the original path (#189)
Diffstat (limited to 'plumbing')
-rw-r--r--plumbing/transport/ssh/common.go5
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)
}