MCPcopy
hub / github.com/docker/compose / run

Method run

pkg/remote/git.go:230–241  ·  view source on GitHub ↗
(cmd *exec.Cmd)

Source from the content-addressed store, hash-verified

228}
229
230func (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
243func (g gitRemoteLoader) gitCommandEnv() []string {
244 env := types.NewMapping(os.Environ())

Callers 1

checkoutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected