Change `MainProject()` logic to skip over non-GitHub remotes
When running `hub pull-request` with this git remote setup: * origin: `github.com/myuser/myfork` * github: `github.com/owner/repo` * upstream: `example.com/other-repo` this error would be shown: Aborted: the origin remote doesn't point to a GitHub repository. The error is both unfortunate (the existence of "upstream" shouldn't have aborted the whole operation) and misleading (it wasn't the "origin" remote that was the problem). This changes `MainProject()` so it skips over non-GitHub remotes until it finds one that points to a GitHub project.
Showing
想要评论请 注册 或 登录