(ctx context.Context, args ...string)
| 642 | } |
| 643 | |
| 644 | func (p *Provider) runGit(ctx context.Context, args ...string) (string, error) { |
| 645 | if p.runner != nil { |
| 646 | return p.runner.Run(ctx, p.repoDir, args...) |
| 647 | } |
| 648 | cmd := exec.CommandContext(ctx, "git", args...) |
| 649 | cmd.Dir = p.repoDir |
| 650 | out, err := cmd.CombinedOutput() |
| 651 | return string(out), err |
| 652 | } |
| 653 | |
| 654 | // runGitSplit runs git with stdout and stderr kept apart, for the callers that |
| 655 | // quote the failure back to the user. |
no test coverage detected