mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-16 12:37:25 +02:00
Update models/repo/repo.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Dmitry Frolov <23313323+DmitryFrolovTri@users.noreply.github.com>
This commit is contained in:
parent
5c80b8d4b7
commit
10edee88c3
@ -635,7 +635,7 @@ func (repo *Repository) GetActualSizeLimit() int64 {
|
|||||||
return setting.Repository.GitSizeMax
|
return setting.Repository.GitSizeMax
|
||||||
}
|
}
|
||||||
|
|
||||||
// RepoSizeIsOversized return true if is over size limitation
|
// IsRepoSizeOversized return true if is over size limitation
|
||||||
func (repo *Repository) IsRepoSizeOversized(additionalSize int64) bool {
|
func (repo *Repository) IsRepoSizeOversized(additionalSize int64) bool {
|
||||||
limit := repo.GetActualSizeLimit()
|
limit := repo.GetActualSizeLimit()
|
||||||
if limit < 0 {
|
if limit < 0 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user