hub/features
Mislav Marohnić c5d7cb2210 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.
2018-12-28 04:16:09 +01:00
..
support Fix tests broken by `--list-cmds` hacks 2018-07-07 13:35:00 +02:00
alias.feature Add rc alias support 2017-03-02 10:16:24 +09:00
am.feature Have `hub am` recognize `/OWNER/REPO/pull/XYZ/commits/SHA` URL format 2018-05-29 14:06:29 +02:00
apply.feature Expect encoding declaration in "Accept" HTTP header 2014-09-21 00:30:10 -07:00
authentication.feature Fix test broken by OAuth URL update 2018-11-28 03:20:10 +01:00
bash_completion.feature Add missing completions and docs for pull-request flags. 2015-08-06 16:21:43 -07:00
browse.feature Add clipboard copy (-c) to browse command 2017-01-06 13:34:16 +00:00
checkout.feature Encapsulate `localRepo.RemoteForProject(project)` function 2018-12-28 03:54:14 +01:00
cherry_pick.feature Simplify cherry-picking commits from pull request URLs 2018-06-14 14:47:27 +02:00
ci_status.feature Change `MainProject()` logic to skip over non-GitHub remotes 2018-12-28 04:16:09 +01:00
clone.feature Identify repos explicitly in `clone` and `submodule` cukes 2016-08-09 22:07:33 +02:00
compare.feature Change `MainProject()` logic to skip over non-GitHub remotes 2018-12-28 04:16:09 +01:00
create.feature Improve `hub create` dealing with an existing "origin" remote 2018-12-28 00:28:22 +01:00
delete.feature Enable `hub delete` on GitHub Enterprise 2018-06-06 14:06:39 +02:00
fetch.feature Fetch repository information without octokit 2018-01-29 20:59:22 +01:00
fish_completion.feature Allow the unsorted expansion for the fish shell 2017-05-09 20:10:57 +09:00
fork.feature Change `MainProject()` logic to skip over non-GitHub remotes 2018-12-28 04:16:09 +01:00
git_compatibility.feature Fix tests broken by `--list-cmds` hacks 2018-07-07 13:35:00 +02:00
help.feature Move `--exec-path` scenario to more suitable file 2018-07-07 12:38:04 +02:00
init.feature Support `hub init -g DIR` 2015-02-02 20:56:37 -08:00
issue.feature Don't choke on literal `%` output from `--format` use 2018-12-20 18:01:20 +01:00
merge.feature Improve `hub merge` to not generate leftover remote refs 2016-09-14 02:41:58 +02:00
pr-checkout.feature Rename test file for `hub pr checkout` 2018-06-07 11:39:05 +02:00
pr-list.feature Support `hub pr list --state=merged` 2018-12-17 17:08:26 +01:00
pull_request.feature Change `MainProject()` logic to skip over non-GitHub remotes 2018-12-28 04:16:09 +01:00
push.feature Port `hub push` tests to cukes 2014-07-25 20:38:12 -07:00
release.feature Add `--format=<FORMAT>` functionality to `issue show`, `release show` 2018-10-30 23:19:53 +01:00
remote_add.feature Fix tests broken by `hub remote add` changes 2018-10-31 02:21:57 +01:00
steps.rb Fix detecting default `pull-request` base branch name 2018-12-28 01:59:31 +01:00
submodule_add.feature Identify repos explicitly in `clone` and `submodule` cukes 2016-08-09 22:07:33 +02:00
sync.feature Add cukes for `hub sync` 2016-09-12 10:02:20 +02:00
zsh_completion.feature Add missing completions and docs for pull-request flags. 2015-08-06 16:21:43 -07:00