MCPcopy Create free account
hub / github.com/go-git/go-git / updateSubmodules

Method updateSubmodules

worktree.go:151–158  ·  view source on GitHub ↗
(o *SubmoduleUpdateOptions)

Source from the content-addressed store, hash-verified

149}
150
151func (w *Worktree) updateSubmodules(o *SubmoduleUpdateOptions) error {
152 s, err := w.Submodules()
153 if err != nil {
154 return err
155 }
156 o.Init = true
157 return s.Update(o)
158}
159
160// Checkout switch branches or restore working tree files.
161func (w *Worktree) Checkout(opts *CheckoutOptions) error {

Callers 2

PullContextMethod · 0.95
cloneMethod · 0.80

Calls 2

SubmodulesMethod · 0.95
UpdateMethod · 0.45

Tested by

no test coverage detected