MCPcopy Create free account
hub / github.com/HashLoad/boss / initSubmodulesNative

Function initSubmodulesNative

core/gitWrapper/git_native.go:101–109  ·  view source on GitHub ↗
(dep models.Dependency)

Source from the content-addressed store, hash-verified

99}
100
101func initSubmodulesNative(dep models.Dependency) {
102 dirModule := filepath.Join(env.GetModulesDir(), dep.GetName())
103 cmd := exec.Command("git", "submodule", "update", "--init", "--recursive")
104 cmd.Dir = dirModule
105
106 if err := runCommand(cmd); err != nil {
107 msg.Die(err.Error())
108 }
109}
110
111func runCommand(cmd *exec.Cmd) error {
112 cmd.Stdout = newWriter(false)

Callers 2

getWrapperCloneFunction · 0.85
getWrapperFetchFunction · 0.85

Calls 4

GetModulesDirFunction · 0.92
DieFunction · 0.92
runCommandFunction · 0.85
GetNameMethod · 0.80

Tested by

no test coverage detected