github-repo-size
github-repo-size copied to clipboard
total repo size != sum of folders
I have a private repo in which the after activating the plugin says it is 714MB However when i click this to display the folder sizes, there is one folder @1.58GB
It seems like the plugin is not calculating things correctly. Any ideas?

EDIT: I see this behavior in many other repos, some repos have an underestimate of total size, others an overestimate
Same issue, look at this repo.
Does not match.
In my case, the extension is overestimating, unlike in @andybeet where its underestimating.
I can confirm the size-mismatch issue with this repository: https://github.com/Windos/BurntToast

This issue seems a duplicate of #9
@harshjv @Geolim4 Maybe #9 should be reopened?
Same here, please reopen #9.

Same Issue Here,

The Cloned Size Differs from the Shown Repository Size.

So I take it this issue won't get addressed as the solution clearly isn't simple, if you check #9 there is a GitHub Support answer : https://github.com/harshjv/github-repo-size/issues/9#issuecomment-239745588
Hi Harsh,
The size attribute represents disk usage in KB, and is what is listed when viewing the sizes of your personal repositories:
https://github.com/settings/repositories
However, due to the way we store repositories, the size may be way off for large repositories and repositories with a lot of forks (i.e. large networks). Also, the size might not be refreshed immediately. We might be removing this attributes soon from API responses since there is no simple fix and it creates more confusion than value. I recommend that you don't rely on this value and that you compute the size of the repository yourself.
I hope this answers your question.
Best, Ivan
I have addressed this on my project. I'm currently actively maintaining and looking for contributors.