mirror of https://github.com/go-gitea/gitea.git
Compare commits
3 Commits
d075146157
...
acfd9998bf
| Author | SHA1 | Date |
|---|---|---|
|
|
acfd9998bf | |
|
|
78932e59a2 | |
|
|
bbc3145f3e |
|
|
@ -207,11 +207,6 @@ func handleSettingsPostUpdate(ctx *context.Context) {
|
|||
repo.Website = form.Website
|
||||
repo.IsTemplate = form.Template
|
||||
|
||||
// Visibility of forked repository is forced sync with base repository.
|
||||
if repo.IsFork {
|
||||
form.Private = repo.BaseRepo.IsPrivate || repo.BaseRepo.Owner.Visibility == structs.VisibleTypePrivate
|
||||
}
|
||||
|
||||
if err := repo_service.UpdateRepository(ctx, repo, false); err != nil {
|
||||
ctx.ServerError("UpdateRepository", err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue