mirror of
https://github.com/thegeeklab/wp-git-action.git
synced 2024-11-10 03:20:40 +00:00
20 lines
271 B
Go
20 lines
271 B
Go
|
package git
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
|
||
|
"golang.org/x/sys/execabs"
|
||
|
)
|
||
|
|
||
|
// RemoteRemove drops the defined remote from a git repo.
|
||
|
func Init(repo Repository) *execabs.Cmd {
|
||
|
cmd := execabs.Command(
|
||
|
gitBin,
|
||
|
"init",
|
||
|
)
|
||
|
cmd.Dir = repo.WorkDir
|
||
|
cmd.Stderr = os.Stderr
|
||
|
|
||
|
return cmd
|
||
|
}
|