From 45bdbcbe6fdab5a8a4ed4f1b16c191f400a0f6b6 Mon Sep 17 00:00:00 2001 From: "Santiago M. Mola" Date: Wed, 26 Apr 2017 17:04:59 +0200 Subject: transport: make Endpoint an interface, fixes #362 * add internal *url.URL implementation for regular URLs. * add internal implementation for SCP-like URLs. --- plumbing/transport/file/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plumbing/transport/file') diff --git a/plumbing/transport/file/client.go b/plumbing/transport/file/client.go index 58e60db..d2a57d0 100644 --- a/plumbing/transport/file/client.go +++ b/plumbing/transport/file/client.go @@ -41,7 +41,7 @@ func (r *runner) Command(cmd string, ep transport.Endpoint, auth transport.AuthM return nil, err } - return &command{cmd: exec.Command(cmd, ep.Path)}, nil + return &command{cmd: exec.Command(cmd, ep.Path())}, nil } type command struct { -- cgit