diff options
author | zeripath <art27@cantab.net> | 2021-06-30 21:58:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-30 22:58:45 +0200 |
commit | 99799832835aae6a8641112cb71eb87baef32afa (patch) | |
tree | a9dd27526f1431f8c7e317a32cb9eae19c8dc993 /custom | |
parent | 4f26e0ac0ea32968e94403e16cb776e7a4e5e690 (diff) | |
download | gitea-99799832835aae6a8641112cb71eb87baef32afa.tar.gz gitea-99799832835aae6a8641112cb71eb87baef32afa.zip |
Update Go-Git to take advantage of LargeObjectThreshold (#16316)
Following the merging of https://github.com/go-git/go-git/pull/330 we
can now add a setting to avoid go-git reading and caching large objects.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'custom')
-rw-r--r-- | custom/conf/app.example.ini | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index 900e8b25ec..ba12b7ff12 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -573,6 +573,9 @@ PATH = ;; ;; Respond to pushes to a non-default branch with a URL for creating a Pull Request (if the repository has them enabled) ;PULL_REQUEST_PUSH_MESSAGE = true +;; +;; (Go-Git only) Don't cache objects greater than this in memory. (Set to 0 to disable.) +;LARGE_OBJECT_THRESHOLD = 1048576 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |