Skip to content

git-pr fails if a remote github repository does not exist #12

@eserte

Description

@eserte

"git pr list" fails if one of a repository's remotes does not exist. To reproduce:

$ git remote add bogus git://github.com/bogus/bogus

$ git pr list
Fetching URL https://api.github.com/repos/bogus/bogus failed with code 404:
{ 
  "message": "Not Found",
  "documentation_url": "http://developer.github.com/v3"
}

... and there's no pr list printed.

This problem can easily happen if a github account was renamed or
a forked repository removed. In this case additional diagnostics
would be helpful, or the bogus repository could be skipped, with
or without warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions