aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-04-27 17:09:21 +0200
committerGitHub <noreply@github.com>2017-04-27 17:09:21 +0200
commita548013a95c25f830103263c25ca999429b2f9dd (patch)
tree79a824ccedf4ce516744788f6de1dc768034cb7a /remote.go
parentbc6b1c429f5a6f4d78a17cbe0e1a9927416f4f1b (diff)
parent45bdbcbe6fdab5a8a4ed4f1b16c191f400a0f6b6 (diff)
downloadgo-git-a548013a95c25f830103263c25ca999429b2f9dd.tar.gz
Merge pull request #365 from smola/git-rel-path
transport: make Endpoint an interface, fixes #362
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote.go b/remote.go
index 1cb7ba7..bc3f209 100644
--- a/remote.go
+++ b/remote.go
@@ -196,12 +196,12 @@ func newSendPackSession(url string, auth transport.AuthMethod) (transport.Receiv
func newClient(url string) (transport.Transport, transport.Endpoint, error) {
ep, err := transport.NewEndpoint(url)
if err != nil {
- return nil, transport.Endpoint{}, err
+ return nil, nil, err
}
c, err := client.NewClient(ep)
if err != nil {
- return nil, transport.Endpoint{}, err
+ return nil, nil, err
}
return c, ep, err