aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorAnthony Weems <amlweems@gmail.com>2017-01-17 11:17:11 -0600
committerSantiago M. Mola <santi@mola.io>2017-01-17 18:17:11 +0100
commit6593c757346f9817a770ff0ea091cce3e8243070 (patch)
tree6fbb72583931b0386e382177970650a9cdbca4eb /repository.go
parent241e8ba00ac9533299d62dc38684305af2b6c301 (diff)
downloadgo-git-6593c757346f9817a770ff0ea091cce3e8243070.tar.gz
transport: remove SetAuth, fixes #206 (#210)
* remove SetAuth functions, implement at NewUploadPackSession/NewReceivePackSession level. * propagate transport.Auth from Fetch/Pull/Clone options to the transport API.
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/repository.go b/repository.go
index 34078e5..b2320b9 100644
--- a/repository.go
+++ b/repository.go
@@ -168,6 +168,7 @@ func (r *Repository) Clone(o *CloneOptions) error {
remoteRefs, err := remote.fetch(&FetchOptions{
RefSpecs: r.cloneRefSpec(o, c),
Depth: o.Depth,
+ Auth: o.Auth,
})
if err != nil {
return err
@@ -343,6 +344,7 @@ func (r *Repository) Pull(o *PullOptions) error {
remoteRefs, err := remote.fetch(&FetchOptions{
Depth: o.Depth,
+ Auth: o.Auth,
})
updated := true