(ctx context.Context)
| 118 | } |
| 119 | |
| 120 | func (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 | |
| 137 | func (g *GitHelper) setGitConfig(ctx context.Context, c *gitutil.Config) error { |
| 138 | err := g.gitConfigMu.Acquire(ctx, 1) |
no test coverage detected