Something we need to lift when working towards GHE compatibility #273 is the restriction that all git remotes need to point to github.com. Currently, we ignore all remotes that don't:
|
func FromURL(u *url.URL) (Interface, error) { |
|
if !strings.EqualFold(u.Hostname(), defaultHostname) && !strings.EqualFold(u.Hostname(), "www."+defaultHostname) { |
|
return nil, fmt.Errorf("unsupported hostname: %s", u.Hostname()) |
Respecting remotes that don't can give us more flexibility when detecting the 3rd-party hostname and deciding whether to authenticate against it with OAuth. #1180
Something we need to lift when working towards GHE compatibility #273 is the restriction that all git remotes need to point to
github.com. Currently, we ignore all remotes that don't:cli/internal/ghrepo/repo.go
Lines 43 to 45 in 54e0534
Respecting remotes that don't can give us more flexibility when detecting the 3rd-party hostname and deciding whether to authenticate against it with OAuth. #1180