Merge pull request #1873 from bradrydzewski/master

enables gogs private mode [ci skip]
This commit is contained in:
Brad Rydzewski 2016-11-25 12:32:46 +01:00 committed by GitHub
commit b1c3ff76f7

View file

@ -138,6 +138,9 @@ func (c *client) Repo(u *model.User, owner, name string) (*model.Repo, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
if c.PrivateMode {
repo.Private = true
}
return toRepo(repo), nil return toRepo(repo), nil
} }