Run the given git command and return its stdout, or an error if the command fails.
(args ...string)
| 61 | |
| 62 | // Run the given git command and return its stdout, or an error if the command fails. |
| 63 | func (repo *GitRepo) runGitCommandRaw(args ...string) (string, string, error) { |
| 64 | var stdout bytes.Buffer |
| 65 | var stderr bytes.Buffer |
| 66 | err := repo.runGitCommandWithIO(nil, &stdout, &stderr, args...) |
| 67 | return strings.TrimSpace(stdout.String()), strings.TrimSpace(stderr.String()), err |
| 68 | } |
| 69 | |
| 70 | // Run the given git command and return its stdout, or an error if the command fails. |
| 71 | func (repo *GitRepo) runGitCommand(args ...string) (string, error) { |
no test coverage detected