0
0
mirror of https://github.com/thegeeklab/wp-git-clone.git synced 2024-11-14 09:20:40 +00:00
wp-git-clone/git/init.go

20 lines
260 B
Go

package git
import (
"golang.org/x/sys/execabs"
)
// RemoteRemove drops the defined remote from a git repo.
func Init(repo Repository) *execabs.Cmd {
args := []string{
"init",
"-b",
repo.Branch,
}
return execabs.Command(
gitBin,
args...,
)
}