MCPcopy Create free account
hub / github.com/nikivdev/go / runGitCommandInDir

Function runGitCommandInDir

cli/flow/main.go:5152–5159  ·  view source on GitHub ↗
(ctx *snap.Context, dir string, args ...string)

Source from the content-addressed store, hash-verified

5150}
5151
5152func runGitCommandInDir(ctx *snap.Context, dir string, args ...string) error {
5153 cmd := exec.Command("git", args...)
5154 cmd.Dir = dir
5155 cmd.Stdout = ctx.Stdout()
5156 cmd.Stderr = ctx.Stderr()
5157 cmd.Stdin = ctx.Stdin()
5158 return cmd.Run()
5159}
5160
5161func runGitCommandStreaming(ctx *snap.Context, args ...string) error {
5162 cmd := exec.Command("git", args...)

Callers 1

privateForkRepoFlowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected