(ctx context.Context, c *gitutil.Config)
| 135 | } |
| 136 | |
| 137 | func (g *GitHelper) setGitConfig(ctx context.Context, c *gitutil.Config) error { |
| 138 | err := g.gitConfigMu.Acquire(ctx, 1) |
| 139 | if err != nil { |
| 140 | return err |
| 141 | } |
| 142 | defer g.gitConfigMu.Release(1) |
| 143 | |
| 144 | g.gitConfig = c |
| 145 | return nil |
| 146 | } |
| 147 | |
| 148 | func SetupGitIgnore(ctx context.Context, repo drivers.RepoStore) error { |
| 149 | // Ensure .gitignore exists and contains necessary entries |
no test coverage detected