test script to check if repo size is reduced.

This commit is contained in:
truecode112
2023-05-25 15:55:31 +03:00
parent 64f6dd6967
commit 20d4d4f0a4
2 changed files with 45 additions and 3 deletions
@@ -28,16 +28,14 @@ ENABLE_SIZE_LIMIT = true
;; If repository has it's own limit set in UI it will override the global setting
;; Standard units of measurements for size can be used like B, KB, KiB, ... , EB, EiB, ...
REPO_SIZE_LIMIT = 500 MB
```
This setting is persistent.
This setting is persistent.
The size limitation is triggered when repository `disk size` + `new commit size` > `defined repository size limit`
If size limitation is triggered the feature would prevent commits that increase repository size on disk
of gitea server and allow those that decrease it
# Gitea per repository size limit setup in UI
1. For Gitea admin it is possible during runtime to enable/disable limit size feature, change the global size limit on the fly.