mirror of
https://github.com/thegeeklab/wp-git-clone.git
synced 2024-11-24 13:00:42 +00:00
21 lines
263 B
Go
21 lines
263 B
Go
package git
|
|
|
|
import (
|
|
"golang.org/x/sys/execabs"
|
|
)
|
|
|
|
// RemoteAdd adds an additional remote to a git repo.
|
|
func RemoteAdd(url string) *execabs.Cmd {
|
|
args := []string{
|
|
"remote",
|
|
"add",
|
|
"origin",
|
|
url,
|
|
}
|
|
|
|
return execabs.Command(
|
|
gitBin,
|
|
args...,
|
|
)
|
|
}
|