From 5a213c08345a2f93c39a52bcfe1f6c94798c5340 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 11 Mar 2014 23:38:22 -0400 Subject: [PATCH] Bug fix --- cmd/get.go | 3 --- doc/github.go | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/get.go b/cmd/get.go index fac5890f6..a6f616b86 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -191,9 +191,6 @@ func copyToGopath(srcPath, destPath string) { // if the commit is empty string, then it downloads all dependencies, // otherwise, it only downloada package with specific commit only. func downloadPackages(ctx *cli.Context, nodes []*doc.Node) { - for _, node := range nodes { - fmt.Println(node) - } // Check all packages, they may be raw packages path. for _, n := range nodes { // Check if local reference diff --git a/doc/github.go b/doc/github.go index ffd7a77ea..0bd62c391 100644 --- a/doc/github.go +++ b/doc/github.go @@ -63,8 +63,9 @@ func getGithubDoc(client *http.Client, match map[string]string, installRepoPath err := com.HttpGetJSON(client, com.Expand("https://api.github.com/repos/{owner}/{repo}/git/refs?{cred}", match), &refs) if err != nil { - log.Error("GET", "Fail to get revision") - log.Error("", err.Error()) + log.Warn("GET", "Fail to get revision") + log.Warn("", err.Error()) + log.Help("Try 'gopm config github' to set and gain more API calls") break }