SizeLimit w/o DB changes

This commit is contained in:
DmitryFrolovTri
2026-01-13 09:18:03 +00:00
parent 7b10eb20a5
commit 7942523c3f
22 changed files with 303 additions and 880 deletions
+5 -10
View File
@@ -18,13 +18,6 @@ import (
"gitea.com/go-chi/binding"
)
// UpdateGlobalRepoFrom for updating global repository setting
type UpdateGlobalRepoFrom struct {
RepoSizeLimit string
LFSSizeLimit string
LFSSizeInRepoSize bool
}
// CreateRepoForm form for creating repository
type CreateRepoForm struct {
UID int64 `binding:"Required"`
@@ -50,7 +43,11 @@ type CreateRepoForm struct {
ForkSingleBranch string
ObjectFormatName string
SizeLimit int64
}
type UpdateGlobalRepoFrom struct {
GitSizeMax string
LFSSizeMax string
}
// Validate validates the fields
@@ -114,8 +111,6 @@ type RepoSettingForm struct {
PushMirrorInterval string
Template bool
EnablePrune bool
RepoSizeLimit string
LFSSizeLimit string
// Advanced settings
EnableCode bool