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

Method Init

submodule.go:288–296  ·  view source on GitHub ↗

Init initializes the submodules in this list.

()

Source from the content-addressed store, hash-verified

286
287// Init initializes the submodules in this list.
288func (s Submodules) Init() error {
289 for _, sub := range s {
290 if err := sub.Init(); err != nil {
291 return err
292 }
293 }
294
295 return nil
296}
297
298// Update updates all the submodules in this list.
299func (s Submodules) Update(o *SubmoduleUpdateOptions) error {

Callers

nothing calls this directly

Calls 1

InitMethod · 0.65

Tested by

no test coverage detected