]> source.dussan.org Git - gitea.git/commit
Update repository size on cron gc task (#15177)
authorzeripath <art27@cantab.net>
Sun, 28 Mar 2021 03:56:28 +0000 (04:56 +0100)
committerGitHub <noreply@github.com>
Sun, 28 Mar 2021 03:56:28 +0000 (05:56 +0200)
commit82d1a7fb17ea549b17ef30711e0fa7e136acb880
treeec2311c5d3bd6962f0dc75a3199d9eb440ab8b75
parent5ad65c8f5d88d9468a479befe42fcec36bf48b26
Update repository size on cron gc task (#15177)

git gc cron could change the size of the repository therefore we should update the
size of the repo stored in our database.

Also significantly improve the efficiency of counting lfs associated with the
repository
models/repo.go
modules/repository/check.go