Repository size reduced, UI still shows original value #7636

Closed
opened 2025-11-02 07:32:02 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @GAS85 on GitHub (Jul 29, 2021).

  • Gitea version (or commit ref): 1.14.5
  • Git version: 2.25.1
  • Operating system: Ubuntu 20.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL/MariaDB
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist: Nothing related

Description

One of Repositories being used for automation and it's size grows (up to 1.3 Gb) with 100+ commits, in order to reduce size and commits aomount git rebase was used, but Repository size in UI was not changed.
Repository size in FS being reduced:

du -sh
78M

Screenshots

grafik

Originally created by @GAS85 on GitHub (Jul 29, 2021). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq) 5. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.14.5 - Git version: 2.25.1 - Operating system: Ubuntu 20.04 - Database (use `[x]`): - [ ] PostgreSQL - [X] MySQL/MariaDB - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - Log gist: Nothing related ## Description One of Repositories being used for automation and it's size grows (up to 1.3 Gb) with 100+ commits, in order to reduce size and commits aomount `git rebase` was used, but Repository size in UI was not changed. Repository size in FS being reduced: ``` du -sh 78M ``` ## Screenshots ![grafik](https://user-images.githubusercontent.com/6813635/127485274-def780d2-6db9-417b-9a2c-e38d74837151.png)
Author
Owner

@lunny commented on GitHub (Jul 29, 2021):

After confirm that no ref to old commits, then run GC will resolve the problem. The default GC cron task is every 3 days?

@lunny commented on GitHub (Jul 29, 2021): After confirm that no ref to old commits, then run GC will resolve the problem. The default GC cron task is every 3 days?
Author
Owner

@GAS85 commented on GitHub (Jul 29, 2021):

I pushed Garbage Collector job to execute, it is correct shown 11 commits, but size is not. On Server FS it is smaller:

$ sudo du -sh /var/git/gitea-repositories/USER/REPO.git/
78M	/var/git/gitea-repositories/USER/REPO.git/

and even all Repos together are smaller:

$ sudo du -sh /var/git/gitea-repositories/
332M	/var/git/gitea-repositories/

Grapg is quite straightforward
изображение

But after new push size was dropped to real one:

$ sudo du -sh /var/git/gitea-repositories/USER/REPO.git/
103M	/var/git/gitea-repositories/USER/REPO.git/

Screenshot:
изображение

@GAS85 commented on GitHub (Jul 29, 2021): I pushed Garbage Collector job to execute, it is correct shown 11 commits, but size is not. On Server FS it is smaller: ```bash $ sudo du -sh /var/git/gitea-repositories/USER/REPO.git/ 78M /var/git/gitea-repositories/USER/REPO.git/ ``` and even all Repos together are smaller: ```bash $ sudo du -sh /var/git/gitea-repositories/ 332M /var/git/gitea-repositories/ ``` Grapg is quite straightforward ![изображение](https://user-images.githubusercontent.com/6813635/127542986-a6e8d022-0867-42bb-a6b1-c02f12d04cbf.png) But after new push size was dropped to real one: ``` $ sudo du -sh /var/git/gitea-repositories/USER/REPO.git/ 103M /var/git/gitea-repositories/USER/REPO.git/ ``` Screenshot: ![изображение](https://user-images.githubusercontent.com/6813635/127543629-61b26b95-230e-4cba-aa19-3d90a65170c2.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7636