Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Repository Size is showing incorrect value

karmendra March 26, 2018

I cleaned up my repository

now when I do git clone with --mirror flag the total size of the clone folder is only 48.1 MB.

But when I go to Repository settings it shows repository size as 1.5 GB

Whats going on here?

Any help is highly appreciated.

Regards,

K

1 answer

0 votes
Kanwar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 26, 2018

Hi Karmendra,

A git clone with --mirror option creates a "bare" repository that does not have a work area.

It is, in fact, more like a read-only clone that you can then pull from -- and get a working repository.

Since the mirrored clone is different from its upstream repository in its structure and layout, it will differ in size.

More info here: when  doing a git clone mirror where are the actual files.

Regards,

Kanwar | Atlassian Support

karmendra March 27, 2018

Thanks a lot for you response, highly appreciate it.

Now I tried a normal git clone, repository size is only 96.8 MB, which still different from 1.5 GB shown in Repository Details. I read somewhere that bitbucket support should run git gc from back-end after a clean up is done. I did a clean up approximately a month ago (I still see the repository size warning btw).

Following images show my new clone and it size on disk

image.png

image.png

karmendra March 29, 2018

Can someone please help me with this?

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2018

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events