github-repo-size icon indicating copy to clipboard operation
github-repo-size copied to clipboard

Cannot display the correct size

Open yansheng836 opened this issue 4 years ago • 1 comments

About this repo :https://github.com/Jyouhou/ICDAR2019-ArT-Recognition-Alchemy

I found a strange thing: I am using this chrome extension to show the repo size which is shows 3.69MB,but that file is 19.1MB.

the repo size: image


a one file of the repo: image

yansheng836 avatar Sep 01 '19 09:09 yansheng836

The size is indeed expressed in kilobytes based on the disk usage of the server-side repository. However, in order to avoid wasting too much space with repositories with a large network, GitHub relies on Git Alternates.

In this configuration, calculating the disk usage against the repository doesn't account for the shared object store and thus returns an "incomplete" value through the API call.

nuwan94 avatar Oct 16 '19 11:10 nuwan94