Skip to content

Allow GH_HOST to select between hosts with mixed git remotes #1668

Description

@mislav

When there are mixed git remotes (some pointing to github.com, some pointing to GHE instances), we only scope down to the first hostname we find and ignore the others. This is by design https://github.com/cli/cli/pull/1258/files#diff-15cce7299aae8810bcab9b0bf9a2fdb1R36

However, it should be possible to use GH_HOST to explicitly choose a host. Right now, GH_HOST is not respected with parsing git remotes.

Originally reported in #1645 (comment)

Activity

  1. added
    priority-2Affects more than a few users but doesn't prevent core functions
    on Sep 30, 2020
  2. self-assigned this
    on Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority-2Affects more than a few users but doesn't prevent core functions

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions