MCPcopy
hub / github.com/hashicorp/go-getter / GitGetter

Struct GitGetter

get_git.go:26–32  ·  view source on GitHub ↗

GitGetter is a Getter implementation that will download a module from a git repository.

Source from the content-addressed store, hash-verified

24// GitGetter is a Getter implementation that will download a module from
25// a git repository.
26type GitGetter struct {
27 Detectors []Detector
28
29 // Timeout sets a deadline which all git CLI operations should
30 // complete within. Defaults to zero which means no timeout.
31 Timeout time.Duration
32}
33
34var defaultBranchRegexp = regexp.MustCompile(`\s->\sorigin/(.*)`)
35

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected