Merge pull request #1873 from bradrydzewski/master
enables gogs private mode [ci skip]
This commit is contained in:
commit
b1c3ff76f7
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue