diff --git a/commands/compare.go b/commands/compare.go index 28fac01a3ecd68d2119ba406797828751ad1aa67..ea8576c8cad0f888c6c984f385f4802fdce8cbbd 100644 --- a/commands/compare.go +++ b/commands/compare.go @@ -2,9 +2,9 @@ package commands import ( "fmt" + "net/url" "regexp" "strings" - "net/url" "github.com/github/hub/github" "github.com/github/hub/utils" diff --git a/github/hosts.go b/github/hosts.go index 9b8c6c493f33362d059b229e9a4d5908bd0ab81e..5e369dca0d2594405813418686130a888f17fac3 100644 --- a/github/hosts.go +++ b/github/hosts.go @@ -26,7 +26,7 @@ func (h GitHubHosts) Include(host string) bool { func knownGitHubHosts() (hosts GitHubHosts) { defaultHost := DefaultGitHubHost() hosts = append(hosts, defaultHost) - hosts = append(hosts, "ssh." + GitHubHost) + hosts = append(hosts, "ssh."+GitHubHost) ghHosts, _ := git.Config("hub.host") for _, ghHost := range strings.Split(ghHosts, "\n") { diff --git a/github/util.go b/github/util.go index c3a8e43fa77fc0a2faffb87f0afb8bc15ade74a5..12e3a1b4f43e8da7b4b46ccf5c8b3a8867b63afa 100644 --- a/github/util.go +++ b/github/util.go @@ -1,8 +1,8 @@ package github import ( - "github.com/github/hub/git" "github.com/github/hub/Godeps/_workspace/src/github.com/mattn/go-isatty" + "github.com/github/hub/git" ) func IsHttpsProtocol() bool {