diff options
author | Devon Barrett <devon@devonbarrett.net> | 2017-07-29 13:12:57 +0100 |
---|---|---|
committer | Devon Barrett <devon@devonbarrett.net> | 2017-07-29 13:12:57 +0100 |
commit | 63b30fba572b7e70833fae4785c6d22f167c6641 (patch) | |
tree | 282c7bc5b476ad21c4cbfad63c74b36d338cb5d1 /repository.go | |
parent | 8ddbecf782c2e340fd85bb4ba4d00dc73d749f87 (diff) | |
download | go-git-63b30fba572b7e70833fae4785c6d22f167c6641.tar.gz |
reuse Auth method when recursing submodules, fixes #521
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/repository.go b/repository.go index 00ffaf7..7f5b793 100644 --- a/repository.go +++ b/repository.go @@ -436,7 +436,10 @@ func (r *Repository) clone(ctx context.Context, o *CloneOptions) error { } if o.RecurseSubmodules != NoRecurseSubmodules { - if err := w.updateSubmodules(o.RecurseSubmodules); err != nil { + if err := w.updateSubmodules(&SubmoduleUpdateOptions{ + RecurseSubmodules: o.RecurseSubmodules, + Auth: o.Auth, + }); err != nil { return err } } |