Simplistic fire & forget running of git command - returns combined output
(callback RepoCallback, failureCheck bool, args ...string)
| 259 | |
| 260 | // Simplistic fire & forget running of git command - returns combined output |
| 261 | func RunGitCommand(callback RepoCallback, failureCheck bool, args ...string) string { |
| 262 | outp, err := exec.Command("git", args...).CombinedOutput() |
| 263 | if failureCheck && err != nil { |
| 264 | callback.Fatalf("Error running git command 'git %v': %v %v", strings.Join(args, " "), err, string(outp)) |
| 265 | } |
| 266 | return string(outp) |
| 267 | |
| 268 | } |
| 269 | |
| 270 | // Input data for a single file in a commit |
| 271 | type FileInput struct { |
no test coverage detected