add flag to set fork-name during repo fork. Tests WIP

This commit is contained in:
Gowtham Munukutla 2021-12-10 22:59:35 +05:30
parent 29816b63c3
commit 54d92facbf
5 changed files with 49 additions and 62 deletions

View file

@ -153,6 +153,7 @@ func AddRemote(name, u string) (*Remote, error) {
}
func UpdateRemoteURL(name, u string) error {
fmt.Println(name, u, "=====================name u==============")
addCmd, err := GitCommand("remote", "set-url", name, u)
if err != nil {
return err