(stdin []byte, args ...string)
| 62 | } |
| 63 | |
| 64 | func (r *Repository) RunCommandWithStdin(stdin []byte, args ...string) error { |
| 65 | cmd := exec.Command("git", args...) |
| 66 | cmd.Dir = r.workTree |
| 67 | cmd.Stdin = bytes.NewReader(stdin) |
| 68 | return cmd.Run() |
| 69 | } |
| 70 | |
| 71 | func (r *Repository) GetConfig(key string) (string, error) { |
| 72 | output, err := r.RunCommand("config", key) |
no outgoing calls
no test coverage detected