提交 2cbd2183 编写于 作者: M Mislav Marohnić

Allow creating "origin" remote in `create` even if another remote exists

上级 60096a26
......@@ -106,7 +106,7 @@ func create(command *Command, args *Args) {
utils.Check(err)
remote, _ := localRepo.OriginRemote()
if remote == nil {
if remote == nil || remote.Name != "origin" {
url := project.GitURL("", "", true)
args.Replace("git", "remote", "add", "-f", "origin", url)
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册