aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorAlberto Cortés <alberto@sourced.tech>2015-12-17 18:01:38 +0100
committerAlberto Cortés <alberto@sourced.tech>2015-12-17 18:01:38 +0100
commitc8c4a69045f75e0a6dce601387bc2ff49f7c1e84 (patch)
tree1331275bfd4714a18ec9b3fa12ca31c80416c671 /remote.go
parentbf98b6096fd1e813ebadbb1f71d4b2d4e48bdb4b (diff)
downloadgo-git-c8c4a69045f75e0a6dce601387bc2ff49f7c1e84.tar.gz
Add install protocols capabilities to GitUploadPackService
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/remote.go b/remote.go
index e28a3b0..685b8a8 100644
--- a/remote.go
+++ b/remote.go
@@ -30,10 +30,14 @@ func NewAuthenticatedRemote(url string, auth common.AuthMethod) (*Remote, error)
return nil, err
}
+ upSrv, err := clients.NewGitUploadPackService(url)
+ if err != nil {
+ return nil, err
+ }
return &Remote{
Endpoint: end,
Auth: auth,
- upSrv: clients.NewGitUploadPackService(),
+ upSrv: upSrv,
}, nil
}