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

Method PushToManagedRepo

cli/pkg/cmdutil/githelper.go:120–135  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

118}
119
120func (g *GitHelper) PushToManagedRepo(ctx context.Context) error {
121 gitConfig, err := g.GitConfig(ctx)
122 if err != nil {
123 return err
124 }
125
126 author, err := g.h.GitSignature(ctx, g.localPath)
127 if err != nil {
128 return err
129 }
130 err = g.h.CommitAndSafePush(ctx, g.localPath, gitConfig, "", author, "1")
131 if err != nil {
132 return err
133 }
134 return nil
135}
136
137func (g *GitHelper) setGitConfig(ctx context.Context, c *gitutil.Config) error {
138 err := g.gitConfigMu.Acquire(ctx, 1)

Callers 2

RedeployProjectMethod · 0.80
redeployProjectFunction · 0.80

Calls 3

GitConfigMethod · 0.95
GitSignatureMethod · 0.80
CommitAndSafePushMethod · 0.80

Tested by

no test coverage detected