MCPcopy Index your code
hub / github.com/devspace-sh/devspace / NewGoGitRepository

Function NewGoGitRepository

pkg/util/git/go_git.go:19–24  ·  view source on GitHub ↗

NewGoGitRepository creates a new git repository struct with the given parameters

(localPath string, remoteURL string)

Source from the content-addressed store, hash-verified

17
18// NewGoGitRepository creates a new git repository struct with the given parameters
19func NewGoGitRepository(localPath string, remoteURL string) *GoGitRepository {
20 return &GoGitRepository{
21 LocalPath: localPath,
22 RemoteURL: remoteURL,
23 }
24}
25
26// Update pulls the repository or clones it into the local path
27func (gr *GoGitRepository) Update(merge bool) error {

Callers 2

NewLanguageHandlerFunction · 0.92
TestGoGitFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGoGitFunction · 0.68