MCPcopy Index your code
hub / github.com/rilldata/rill / FullyQualifiedRemote

Method FullyQualifiedRemote

cli/pkg/gitutil/gitutil.go:42–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func (g *Config) FullyQualifiedRemote() (string, error) {
43 if g.Remote == "" {
44 return "", fmt.Errorf("remote is not set")
45 }
46 u, err := url.Parse(g.Remote)
47 if err != nil {
48 return "", err
49 }
50 if g.Username != "" {
51 if g.Password != "" {
52 u.User = url.UserPassword(g.Username, g.Password)
53 } else {
54 u.User = url.User(g.Username)
55 }
56 }
57 return u.String(), nil
58}
59
60func (g *Config) RemoteName() string {
61 if g.ManagedRepo {

Callers 3

GitPullMethod · 0.80
ListBranchesMethod · 0.80
PullMethod · 0.80

Calls 4

ParseMethod · 0.80
UserMethod · 0.80
ErrorfMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected