mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 09:59:24 +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:
1 parent
5c80b8d4b7
commit
10edee88c3
1 file changed
+1
-1
+1
-1
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user