From 160a7a29add1185b639d6316b0b56ed6a357241a Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Fri, 7 Feb 2014 03:35:27 -0700 Subject: [PATCH] fixed log output and new line issue --- pkg/build/log/log.go | 2 +- pkg/handler/repos.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/build/log/log.go b/pkg/build/log/log.go index de3556b56..404e415fb 100644 --- a/pkg/build/log/log.go +++ b/pkg/build/log/log.go @@ -30,7 +30,7 @@ var output io.Writer = os.Stdout var prefix string // the log suffix -var suffix string = "/n" +var suffix string = "\n" // SetPriority sets the default log level. func SetPriority(level int) { diff --git a/pkg/handler/repos.go b/pkg/handler/repos.go index 61c205f3c..99195e104 100644 --- a/pkg/handler/repos.go +++ b/pkg/handler/repos.go @@ -93,6 +93,7 @@ func RepoCreateGithub(w http.ResponseWriter, r *http.Request, u *User) error { } repo.UserID = u.ID + repo.Private = githubRepo.Private // if the user chose to assign to a team account // we need to retrieve the team, verify the user @@ -123,6 +124,8 @@ func RepoCreateGithub(w http.ResponseWriter, r *http.Request, u *User) error { if err != nil { return fmt.Errorf("Unable to add Private Key to your GitHub repository") } + } else { + } // create a hook so that we get notified when code