(directory string)
| 305 | } |
| 306 | return strings.Join(lines, "\n") |
| 307 | } |
| 308 | |
| 309 | func secondsDuration(seconds float32) time.Duration { |
| 310 | return time.Duration(float64(seconds) * float64(time.Second)) |
| 311 | } |
| 312 | |
| 313 | func runGitCommand(cwd string, timeout time.Duration, args ...string) (string, bool) { |
| 314 | ctx, cancel := context.WithTimeout(context.Background(), timeout) |
| 315 | defer cancel() |
| 316 | cmd := exec.CommandContext(ctx, "git", args...) |
nothing calls this directly
no test coverage detected