提交 d5065400 编写于 作者: J Jingwen Owen Ou

Compare with remote

上级 913037d8
......@@ -6,6 +6,7 @@ import (
"github.com/jingweno/gh/github"
"github.com/jingweno/gh/utils"
"regexp"
"strings"
)
var cmdCheckout = &Command{
......@@ -54,7 +55,7 @@ func transformCheckoutArgs(args []string) ([]string, error) {
return nil, err
}
if user == remote {
if strings.Contains(remote, user) {
err = git.Spawn("remote", "set-branches", "--add", user, branch)
if err != nil {
return nil, err
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册