save the new repo settings correctly

pull/7919/head
Gogs 2025-02-23 21:47:15 +01:00
parent d4da1edb60
commit 3a3bbe26fd
1 changed files with 2 additions and 1 deletions

View File

@ -155,7 +155,8 @@ func SettingsPost(c *context.Context, f form.RepoSetting) {
repo.ExternalTrackerStyle = f.TrackerIssueStyle
repo.EnablePulls = f.EnablePulls
repo.PullsIgnoreWhitespace = f.PullsIgnoreWhitespace
repo.PullsAllowRebase = f.PullsAllowRebase
repo.PullsPreferRebase = f.PullsPreferRebase()
repo.PullsAllowAlt = f.PullsAllowAlt()
if !repo.EnableWiki || repo.EnableExternalWiki {
repo.AllowPublicWiki = false