diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-28 21:26:17 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-28 21:26:17 +0200 |
commit | 11a403e8af2f5f1f2d5fd3bc73c1ff943ccb7c96 (patch) | |
tree | 57e196443d93a6f57278ee85f3bcdbb138a4b1c7 /submodule.go | |
parent | e4a931cc533f743368e4c77aeb718272e1fad777 (diff) | |
download | go-git-11a403e8af2f5f1f2d5fd3bc73c1ff943ccb7c96.tar.gz |
Submodule.Update, add Auth to SubmoduleUpdateOption, fixes #520
Diffstat (limited to 'submodule.go')
-rw-r--r-- | submodule.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/submodule.go b/submodule.go index fbaddfd..b5de41f 100644 --- a/submodule.go +++ b/submodule.go @@ -218,7 +218,7 @@ func (s *Submodule) fetchAndCheckout( ctx context.Context, r *Repository, o *SubmoduleUpdateOptions, hash plumbing.Hash, ) error { if !o.NoFetch { - err := r.FetchContext(ctx, &FetchOptions{}) + err := r.FetchContext(ctx, &FetchOptions{Auth: o.Auth}) if err != nil && err != NoErrAlreadyUpToDate { return err } |