From 085a2bec83d66d78a6f658238063c113646f3a65 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Sat, 14 Dec 2013 15:08:30 -0800 Subject: [PATCH] Check the available hosts and credentials before asking for them for the default host. --- commands/clone.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/clone.go b/commands/clone.go index bc4d39c4..47dbcf96 100644 --- a/commands/clone.go +++ b/commands/clone.go @@ -54,7 +54,7 @@ func transformCloneArgs(args *Args) { var credentials *github.Credentials if owner == "" { configs := github.CurrentConfigs() - credentials = configs.PromptFor(github.DefaultHost()) + credentials = configs.DefaultCredentials() owner = credentials.User }