You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remotesError=errors.New("none of the git remotes configured for this repository correspond to the GH_HOST environment variable. Try adding a matching remote or unsetting the variable.")
86
-
} else {
87
-
remotesError=errors.New("none of the git remotes configured for this repository point to a known GitHub host. To tell gh about a new GitHub host, please use `gh auth login`")
83
+
dummyHostname:="example.com"// any non-github.com hostname is fine here
84
+
ifconfig.IsHostEnv(src) {
85
+
returnnil, fmt.Errorf("none of the git remotes configured for this repository correspond to the %s environment variable. Try adding a matching remote or unsetting the variable.", src)
returnnil, errors.New("set the GH_HOST environment variable to specify which GitHub host to use")
88
88
}
89
-
returnnil, remotesError
89
+
returnnil, errors.New("none of the git remotes configured for this repository point to a known GitHub host. To tell gh about a new GitHub host, please use `gh auth login`")
0 commit comments