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