aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
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
}