From 658f999fcf02ad4719051da77a710e5af6f335f0 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Fri, 25 Nov 2016 11:46:50 +0100 Subject: [PATCH] enable gogs private mode --- remote/gogs/gogs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/remote/gogs/gogs.go b/remote/gogs/gogs.go index 4ff60706..373843c0 100644 --- a/remote/gogs/gogs.go +++ b/remote/gogs/gogs.go @@ -133,6 +133,9 @@ func (c *client) Repo(u *model.User, owner, name string) (*model.Repo, error) { if err != nil { return nil, err } + if c.PrivateMode { + repo.Private = true + } return toRepo(repo), nil }