(client *git.Client, commands [][]string)
| 420 | } |
| 421 | |
| 422 | func runGitCommands(client *git.Client, commands [][]string) error { |
| 423 | for _, args := range commands { |
| 424 | cmd, err := client.Command(ctx.Background(), args...) |
| 425 | if err != nil { |
| 426 | return err |
| 427 | } |
| 428 | if _, err := cmd.Output(); err != nil { |
| 429 | return err |
| 430 | } |
| 431 | } |
| 432 | return nil |
| 433 | } |
no test coverage detected