MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / setGitConf

Function setGitConf

internal/cmd/init.go:17–27  ·  view source on GitHub ↗
(hookDir string, isGlobal bool)

Source from the content-addressed store, hash-verified

15}
16
17func setGitConf(hookDir string, isGlobal bool) error {
18 args := []string{"config"}
19 if isGlobal {
20 args = append(args, "--global")
21 }
22 args = append(args, "core.hooksPath", hookDir)
23
24 cmd := exec.Command("git", args...)
25 cmd.Stderr = os.Stderr
26 return cmd.Run()
27}

Callers 1

initLintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected