MCPcopy Index your code
hub / github.com/jesseduffield/lazygit / CloneIntoSubmodule

Method CloneIntoSubmodule

pkg/integration/components/shell.go:370–375  ·  view source on GitHub ↗
(submoduleName string, submodulePath string)

Source from the content-addressed store, hash-verified

368}
369
370func (self *Shell) CloneIntoSubmodule(submoduleName string, submodulePath string) *Shell {
371 self.Clone(submoduleName)
372 self.RunCommand([]string{"git", "submodule", "add", "--name", submoduleName, "../" + submoduleName, submodulePath})
373
374 return self
375}
376
377func (self *Shell) Clone(repoName string) *Shell {
378 self.RunCommand([]string{"git", "clone", "--bare", ".", "../" + repoName})

Calls 2

CloneMethod · 0.95
RunCommandMethod · 0.95

Tested by

no test coverage detected