mirror of https://github.com/go-gitea/gitea.git
Remove unnecessary code
This commit is contained in:
parent
bbc3145f3e
commit
78932e59a2
|
|
@ -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 {
|
||||
repo.IsPrivate = 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