(ctx context.Context, r *Repository, o *SubmoduleUpdateOptions)
| 284 | } |
| 285 | |
| 286 | func (s *Submodule) doRecursiveUpdate(ctx context.Context, r *Repository, o *SubmoduleUpdateOptions) error { |
| 287 | if o.RecurseSubmodules == NoRecurseSubmodules { |
| 288 | return nil |
| 289 | } |
| 290 | |
| 291 | w, err := r.Worktree() |
| 292 | if err != nil { |
| 293 | return err |
| 294 | } |
| 295 | |
| 296 | l, err := w.Submodules() |
| 297 | if err != nil { |
| 298 | return err |
| 299 | } |
| 300 | |
| 301 | new := &SubmoduleUpdateOptions{} |
| 302 | *new = *o |
| 303 | |
| 304 | new.RecurseSubmodules-- |
| 305 | return l.UpdateContext(ctx, new) |
| 306 | } |
| 307 | |
| 308 | func (s *Submodule) fetchAndCheckout( |
| 309 | ctx context.Context, r *Repository, o *SubmoduleUpdateOptions, hash plumbing.Hash, |
no test coverage detected