I have a repository in my bitbucket server, for which the .git folder was 660 MB and the total size of the repository was 714 MB.
I used the bfg-repo-cleaner tool on the repository, and using git count-objects, saw that the size reduced to 125 MB. The command git push was successful as well.
However, when I tried cloning the repository again, I received the older size. The commit ids have been updated in bitbucket because under the list of commits, I can see the "after" commit id, and the tooltip also shows the former commit-id, meaning the push was successfully done.
But the size of the repo remains the same.
I have followed the same procedure for another repo, and it seems to be working fine there. The size of that repo has been reduced to 60 MB from 970 MB.
Is this behaviour expected?