From 9b6d3051fa2dfa80c7520c19d3cd3ec02ed72653 Mon Sep 17 00:00:00 2001 From: shawnps Date: Sat, 7 Feb 2015 07:18:49 -0800 Subject: [PATCH] add user/pass to git clone --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index e52e99b..e6bbed6 100644 --- a/main.go +++ b/main.go @@ -156,8 +156,8 @@ func getGrade(percentage float64) Grade { func newChecksResp(repo string, forceRefresh bool) (checksResp, error) { url := repo - if !strings.HasPrefix(url, "https://github.com/") { - url = "https://github.com/" + url + if !strings.HasPrefix(url, "https://gojp:gojp@github.com/") { + url = "https://gojp:gojp@github.com/" + url } if !forceRefresh {