(r *Repository, o *SubmoduleUpdateOptions)
| 218 | } |
| 219 | |
| 220 | func (s *Submodule) doRecursiveUpdate(r *Repository, o *SubmoduleUpdateOptions) error { |
| 221 | if o.RecurseSubmodules == NoRecurseSubmodules { |
| 222 | return nil |
| 223 | } |
| 224 | |
| 225 | w, err := r.Worktree() |
| 226 | if err != nil { |
| 227 | return err |
| 228 | } |
| 229 | |
| 230 | l, err := w.Submodules() |
| 231 | if err != nil { |
| 232 | return err |
| 233 | } |
| 234 | |
| 235 | new := &SubmoduleUpdateOptions{} |
| 236 | *new = *o |
| 237 | |
| 238 | new.RecurseSubmodules-- |
| 239 | return l.Update(new) |
| 240 | } |
| 241 | |
| 242 | func (s *Submodule) fetchAndCheckout( |
| 243 | ctx context.Context, r *Repository, o *SubmoduleUpdateOptions, hash plumbing.Hash, |
no test coverage detected