mirror of
https://github.com/daveberrys/guh.git
synced 2026-11-29 00:56:45 +08:00
fix bug not linking remotes
This commit is contained in:
1 parent
e512398aba
commit
664d8a8da6
2 files changed
+3
-8
No files matched your search
@@ -19,7 +19,9 @@ var linkRepoCmd = &cobra.Command{
|
||||
utils.RunGit(false, "remote", "get-url", "origin")
|
||||
return nil
|
||||
default:
|
||||
utils.RunGitSequence(false, []string{"remote", "set-url", "origin", args[0]})
|
||||
utils.RunGit(true, "remote", "remove", "origin")
|
||||
utils.RunGit(false, "remote", "add", "origin", args[0])
|
||||
|
||||
fmt.Printf("Linked repository to: %s\n", args[0])
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user