MCPcopy
hub / github.com/nektos/act / gitConfig

Function gitConfig

pkg/common/git/git_test.go:224–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

222}
223
224func gitConfig() {
225 if os.Getenv("GITHUB_ACTIONS") == "true" {
226 var err error
227 if err = gitCmd("config", "--global", "user.email", "test@test.com"); err != nil {
228 log.Error(err)
229 }
230 if err = gitCmd("config", "--global", "user.name", "Unit Test"); err != nil {
231 log.Error(err)
232 }
233 }
234}
235
236func gitCmd(args ...string) error {
237 cmd := exec.Command("git", args...)

Callers 2

TestFindGitRemoteURLFunction · 0.85
TestGitFindRefFunction · 0.85

Calls 3

gitCmdFunction · 0.85
GetenvMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…