diff options
author | Alberto Cortés <alberto@sourced.tech> | 2015-12-17 18:01:38 +0100 |
---|---|---|
committer | Alberto Cortés <alberto@sourced.tech> | 2015-12-17 18:01:38 +0100 |
commit | c8c4a69045f75e0a6dce601387bc2ff49f7c1e84 (patch) | |
tree | 1331275bfd4714a18ec9b3fa12ca31c80416c671 /remote.go | |
parent | bf98b6096fd1e813ebadbb1f71d4b2d4e48bdb4b (diff) | |
download | go-git-c8c4a69045f75e0a6dce601387bc2ff49f7c1e84.tar.gz |
Add install protocols capabilities to GitUploadPackService
Diffstat (limited to 'remote.go')
-rw-r--r-- | remote.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 } |