Immediately update repository statistics when running housekeeping and repository cleanup
Problem to solve
Running reduce repository size or housekeeping does not result in an immediate update of project statistics. Instead I need to wait 10 minutes, 24 hours, some amount of time? Maybe I need to push to trigger an update, and then wait some more? This means it is hard to determine if I have reduced the repository size by force pushing or uploading a commit map. This is a problem if I am approaching my storage limit.
Further details
Proposal
When running housekeeping (Settings >> General >> Advanced >> Housekeeping >> Run Housekeeping
) or repository cleanup (Settings >> Repository >> Repository cleanup >> Run cleanup
):
- Update the project statistics immediately to reflect current disk usage
- Clear the project cache etc so that the repository storage metric is correct when viewing the repository
Edited by James Ramsay (ex-GitLab)