mirror of
https://github.com/thegeeklab/wp-git-action.git
synced 2024-11-10 03:20:40 +00:00
18 lines
228 B
Go
18 lines
228 B
Go
|
package repo
|
||
|
|
||
|
import (
|
||
|
"os/exec"
|
||
|
)
|
||
|
|
||
|
// SkipVerify disables globally the git ssl verification.
|
||
|
func SkipVerify() *exec.Cmd {
|
||
|
cmd := exec.Command(
|
||
|
"git",
|
||
|
"config",
|
||
|
"--global",
|
||
|
"http.sslVerify",
|
||
|
"false")
|
||
|
|
||
|
return cmd
|
||
|
}
|