Repository size / quota not decreasing after git push --force following history rewrite #2474
Labels
No labels
accessibility
bug
bug
infrastructure
Codeberg
contributions welcome
docs
duplicate
enhancement
infrastructure
legal
licence / ToS
please chill
we are volunteers
public relations
question
question
user support
s/Forgejo
s/Forgejo/migration
s/Pages
s/Weblate
s/Woodpecker
security
service
upstream
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Codeberg/Community#2474
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Comment
Hello,
I rewrote the Git history of my repository to remove large binary files (APK ~230 MiB, fonts zip, etc.) using git filter-repo and then pushed with git push --force to Codeberg.
Locally, the repository is now small:
git count-objects -vH reports size-pack ~59 KiB, garbage: 0
Only 2 commits remain on master; the pushed pack was on the order of tens of KiB
Despite that, the repository / account storage figure shown in the Codeberg UI still appears to reflect the old size (on the order of hundreds of MiB), as if unreachable objects from before the force-push were still counted.
Repository: https://codeberg.org/LIkus777/IqraApi
Branch: master
Question: Is this expected until server-side git gc runs on your side? If so, is there an ETA or a way to trigger / request garbage collection for a specific repo? If not, could you advise what else might cause the UI quota to stay high?
Thank you for Codeberg and for any guidance.
I have done the same thing last week, for a private repo. It is 4 MiB now, but it still shows as 100+ MiB here in the UI.
It looks to me the size has been decreased now.
@Gusted wrote in #2474 (comment):
yes. because I deleted the repo...and pushed it again.