(cmd *exec.Cmd)
| 228 | } |
| 229 | |
| 230 | func (g gitRemoteLoader) run(cmd *exec.Cmd) error { |
| 231 | if logrus.IsLevelEnabled(logrus.DebugLevel) { |
| 232 | output, err := cmd.CombinedOutput() |
| 233 | scanner := bufio.NewScanner(bytes.NewBuffer(output)) |
| 234 | for scanner.Scan() { |
| 235 | line := scanner.Text() |
| 236 | logrus.Debug(line) |
| 237 | } |
| 238 | return err |
| 239 | } |
| 240 | return cmd.Run() |
| 241 | } |
| 242 | |
| 243 | func (g gitRemoteLoader) gitCommandEnv() []string { |
| 244 | env := types.NewMapping(os.Environ()) |