Skip to content

Repo size on web isn't updated after Auto GC #14862

Closed
@bagasme

Description

@bagasme
  • Gitea version (or commit ref): master (commit b2986ab)
  • Git version: 2.30.1
  • Operating system: Debian 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No (not relevant)
  • Log gist: (not relevant)

Description

When auto gc occurs, the actual repo size is shrinked, but the repo size on web interface isn't updated accordingly.

For example, today I pushed recent commits on git.git (Git SCM repo) to my local Gitea instance, then auto gc was invoked.
After auto gc, the repo size was about 132 MiB, but on the web interface the size was still 211 MiB (before gc)

Screenshots

on web interface
on web interface, repo size: 211 MiB
git count-objects -v on the instance
git count-objects -v when accessing the interface, repo size: 132 MiB

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions