UpdateContext the registered submodule to match what the superproject expects, the submodule should be initialized first calling the Init method or setting in the options SubmoduleUpdateOptions.Init equals true. The provided Context must be non-nil. If the context expires before the operation is co
(ctx context.Context, o *SubmoduleUpdateOptions)
| 242 | // operation is complete, an error is returned. The context only affects the |
| 243 | // transport operations. |
| 244 | func (s *Submodule) UpdateContext(ctx context.Context, o *SubmoduleUpdateOptions) error { |
| 245 | return s.update(ctx, o, plumbing.ZeroHash) |
| 246 | } |
| 247 | |
| 248 | func (s *Submodule) update(ctx context.Context, o *SubmoduleUpdateOptions, forceHash plumbing.Hash) error { |
| 249 | if !s.initialized && !o.Init { |