提交 ed802d80 编写于 作者: J Jingwen Owen Ou

Use hub.host instead of gh.host for now

上级 5799cebd
......@@ -10,7 +10,7 @@ Given(/^there are no remotes$/) do
end
Given(/^"([^"]*)" is a whitelisted Enterprise host$/) do |host|
run_silent %(git config --global --add gh.host "#{host}")
run_silent %(git config --global --add hub.host "#{host}")
end
Given(/^git "(.+?)" is set to "(.+?)"$/) do |key, value|
......
......@@ -29,7 +29,7 @@ func knownGitHubHosts() (hosts GitHubHosts) {
hosts = append(hosts, defaultHost)
hosts = append(hosts, fmt.Sprintf("ssh.%s", defaultHost))
ghHosts, _ := git.Config("gh.host")
ghHosts, _ := git.Config("hub.host")
for _, ghHost := range strings.Split(ghHosts, "\n") {
ghHost = strings.TrimSpace(ghHost)
if ghHosts != "" {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册